Information jump method, device and electronic device

By displaying the operation logo in the video screen and receiving touch instructions, it jumps directly to the page indicated by the QR code, which solves the problem of complicated steps to obtain QR code information during video playback, and improves the user experience and intuitive operation.

CN110399574BActive Publication Date: 2024-09-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN201810355959.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-19
Publication Date
2024-09-13
Estimated Expiration
2038-09-29

AI Technical Summary

Technical Problem

When a terminal device plays a video, obtaining the QR code information embedded in the video screen requires pausing the video and scanning it through another terminal device. The operation steps are complicated and unintuitive.

Method used

When it is detected that the video screen contains a QR code, the client displays an operation logo, receives touch operation instructions, jumps directly to the page address indicated by the QR code, and displays the information on the target page.

Benefits of technology

It simplifies the steps of jumping QR code information, improves user experience, avoids the need to pause video playback and scan operations, and provides the jump operation entrance directly in the video screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110399574B
    Figure CN110399574B
Patent Text Reader

Abstract

The present invention discloses an information jump method and device and an electronic device. The method comprises: when a QR code is detected in a video screen played on a client, an operation mark is displayed on the client, wherein the operation mark is used to prompt the execution of a target operation, and the target operation is to jump to the page address indicated by the QR code; receiving an operation instruction for triggering the operation mark; according to the operation instruction, jumping to the page address, and displaying the display information in the target page indicated by the page address. The present invention solves the technical problem that the method of scanning a QR code displayed on a terminal device to make another terminal device execute information jump has a high complexity of operation steps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to an information jump method and device and an electronic device. Background Art

[0002] At present, in order to obtain the information in the QR code embedded in the video screen of the video during the video playback of the terminal device, the viewer usually needs to pause the playback of the video first, and then scan the embedded QR code through another terminal device to jump to the information. This method of scanning the QR code displayed on one terminal device and making another terminal device execute information jump has the problem of high complexity of operation steps.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide an information jump method and device and an electronic device to at least solve the technical problem that the operation steps of scanning a QR code displayed on a terminal device to enable another terminal device to execute information jump are relatively complex.

[0005] According to one aspect of an embodiment of the present invention, there is provided an information jump method, comprising: in a case where it is detected that a QR code is contained in a video screen played on a client, displaying an operation identifier on the client, wherein the operation identifier is used to prompt the execution of a target operation, and the target operation is to jump to a page address indicated by the QR code; receiving an operation instruction for triggering the operation identifier; according to the operation instruction, jumping to the page address, and displaying the display information in the target page indicated by the page address.

[0006] According to another aspect of an embodiment of the present invention, an information jump device is also provided, including: a display unit, used to display an operation identifier on the client when it is detected that a QR code is included in a video screen played on the client, wherein the operation identifier is used to prompt the execution of a target operation, and the target operation is to jump to a page address indicated by the QR code; a receiving unit, used to receive an operation instruction for triggering the operation identifier; and a jumping unit, used to jump to the page address according to the operation instruction, and display the display information in the target page indicated by the page address.

[0007] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method through the computer program.

[0008] In an embodiment of the present invention, an operation mark is displayed on a terminal that plays a video containing a QR code, and a jump display operation is performed when a touch operation of the operation mark is received. When it is detected that a QR code is included in a video screen played on a client, an operation mark for prompting a jump operation is displayed on the client; and when an operation instruction for triggering the operation mark is received, the operation mark is jumped to the page address indicated by the QR code, and the display information in the target page indicated by the page address is displayed. This achieves the purpose of directly providing the viewer with an operation mark for prompting a jump operation in the client that plays a video screen containing a QR code, and performing a jump display, thereby achieving the technical effect of simplifying the information jump steps related to the QR code and improving the user experience. Since there is no need to pause the video playback on one terminal device, and another terminal device performs a scan jump operation on the QR code embedded in the video screen, the technical problem of high complexity of the operation steps in the method of scanning the QR code displayed on one terminal device and causing another terminal device to perform information jump is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0010] Figure 1 is a schematic diagram of an application environment of an information jump method according to an embodiment of the present invention;

[0011] Figure 2 is a flow chart of an information jump method according to an embodiment of the present invention;

[0012] Figure 3 is a schematic diagram of a QR code appearing in a video screen according to an embodiment of the present invention;

[0013] Figure 4 is a schematic diagram of a two-dimensional code according to an embodiment of the present invention;

[0014] Figure 5 is a schematic diagram of an information jump method according to an embodiment of the present invention;

[0015] Figure 6 is a schematic diagram of another information jump method according to an embodiment of the present invention;

[0016] Figure 7 is a schematic diagram of another information jump method according to an embodiment of the present invention;

[0017] Figure 8 is a schematic diagram of a grayscale image according to an embodiment of the present invention;

[0018] Fig. 9 is a schematic diagram of converting a grayscale image into a binary image according to an embodiment of the present invention;

[0019] Fig.10 is a schematic diagram of the top angle of a QR code according to an embodiment of the present invention;

[0020] Fig.11 is a structural schematic diagram of an information jump device according to an embodiment of the present invention;

[0021] Fig.12 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] Now let's explain the two-dimensional code. A two-dimensional bar code is a way of recording data symbol information on a black and white graphic distributed in a plane (two-dimensional direction) using a certain geometric shape according to a certain rule.

[0025] According to one aspect of an embodiment of the present invention, a method for information jump is provided. Optionally, the above-mentioned method for information jump can be applied to, but not limited to, Figure 1 In the application environment shown. Figure 1As shown, the client 102 receives the video sent by the server 106 through the network 104. The video can be played in real time or in non-real time (for example, the client 102 caches the video or plays it after downloading it). When the client 102 detects that the played video screen contains a QR code, it displays an operation mark, wherein the operation mark is used to prompt the execution of a target operation, and the target operation is to jump to the page address indicated by the QR code; receive an operation instruction for triggering the operation mark; jump to the aforementioned page address according to the operation instruction, and display the display information in the target page indicated by the page address.

[0026] Optionally, in this embodiment, the client may include but is not limited to at least one of the following: a mobile phone, a tablet computer, etc. The network may include but is not limited to a wireless network or a mobile network, wherein the wireless network includes: Bluetooth, Wireless Fidelity (Wireless Fidelity, referred to as WIFI) and other networks that implement wireless communication. The server may include but is not limited to at least one of the following: a personal computer (Personal Computer, referred to as PC) and other devices that can be used to provide video images. The above is only an example, and this embodiment does not make any limitation on this.

[0027] Figure 2 FIG. 1 is a flow chart of an information jump method according to an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:

[0028] Step S202, when it is detected that the video screen played on the client contains a QR code, an operation mark is displayed on the client, wherein the operation mark is used to prompt the execution of a target operation, and the target operation is to jump to the page address indicated by the QR code;

[0029] Step S204, receiving an operation instruction for triggering an operation identifier;

[0030] Step S206: jump to the page address according to the operation instruction, and display the display information in the target page indicated by the page address.

[0031] Optionally, in this embodiment, the above information jump method can be applied to, but not limited to, a scenario where a video screen containing a QR code is played on a client and a jump display is performed, such as a scenario where a multimedia file containing information that can be jumped is played. The above is only an example, and this embodiment does not make any limitation to this.

[0032] In step S202, the video to which the video screen played on the client belongs may include but is not limited to:

[0033] 1) Videos watched online, for example, videos watched online by a client through a video playback website or video playback application, which may be a professional website or application for video playback, or other websites or applications capable of video playback, or videos watched online by a client through a live broadcast platform;

[0034] 2) Videos played after being cached or downloaded (for example, videos cached or downloaded by the client through a video playback website, video playback application, or download software);

[0035] 3) Videos acquired and played by the client through other means, for example, videos directly sent by other devices through the network or other connection methods (such as Bluetooth).

[0036] The above is only an example of how to obtain and play the video to which the video screen belongs, and this embodiment does not impose any limitation on this.

[0037] Optionally, in this embodiment, the client can play the video screen through a video playing website, video playing software, a plug-in in a web page, etc. The above is only an example, and this embodiment does not make any limitation to this.

[0038] Optionally, in this embodiment, the position where the two-dimensional code appears in the video screen can be arbitrary. For example, the two-dimensional code can appear in the peripheral position, middle position, left half area, right half area, etc. of the video screen. The position where the two-dimensional code appears in the video screen can be fixed or variable, or it can be fixed for a certain period of time and variable for another period of time. The change of the position of the two-dimensional code can be regular (for example, uniform movement, accelerated movement, periodic change) or irregular. The trajectory of the change of the position of the two-dimensional code has a specific shape (straight line, oblique line, arc, etc.) or has no specific shape. The time period in which the two-dimensional code appears in the video screen can be arbitrary. For example, the two-dimensional code appears all the time during the video playback. For another example, when the video is played to a certain time point, the two-dimensional code appears, or disappears. For another example, when a specific object (specific role, specific commodity) appears in the video screen, the two-dimensional code appears. The two-dimensional code and the video screen can be in the same layer or in different layers. The above is only an example, and this embodiment does not make any limitation to this.

[0039] Optionally, in this embodiment, the QR code can be identified by a target image style. The target image style can be any image style used to identify the QR code, for example, three corners of the rectangular frame of the QR code have a fixed style (i.e., the target image style). For another example, there is a fixed style in the middle area and at least one corner of the rectangular frame of the QR code. The fixed style can be a specific shape (e.g., a rectangle, a circle), and at least two colors of pixels are arranged in a specified ratio in a specific direction.

[0040] The following examples are used to illustrate this. Figure 3 As shown in the figure, when playing the video screen in the client, at 00:30:10 (30 minutes and 10 seconds), a QR code appears in the lower right corner of the video screen. The specific structure of the QR code is as follows Figure 4 As shown, the QR code is in a rectangular structure, and there are fixed patterns in the upper left corner, upper right corner and lower left corner of the QR code (the fixed pattern is displayed in the form of a grid, and there may be no grid in the actual display). On the symmetry axis of the fixed pattern, the ratio of black to white is fixed, which is 1:1:3:1:1.

[0041] Optionally, before the operation mark is displayed on the client, it can be detected that the video screen played on the client contains a QR code; the detected QR code is identified to obtain QR code information (data symbol information), wherein the QR code information is used to identify the page address.

[0042] Optionally, in this embodiment, after the QR code is identified, the location area where the QR code is located can be captured to generate a picture of the QR code, and the system QR code recognition application program interface (Application ProgramInterface, referred to as API) is used to identify it, and the QR code information (data symbol information) is parsed to obtain the page address identified by the QR code information.

[0043] Optionally, in this embodiment, the above parsing process may be performed before the operation identifier is displayed, or may be performed after the operation identifier is displayed, for example, may be performed after the operation instruction is received.

[0044] Optionally, detecting that a video screen played on the client contains a QR code may include: taking a screenshot of the video screen at a second timing interval; detecting that a second screenshot image obtained by the screenshot contains one or more target image styles, wherein the target image style is used to identify the QR code.

[0045] Optionally, in this embodiment, taking a screenshot of the video screen at the second timing interval may include: starting a timing screenshot function, setting the timing interval (i.e., the second timing interval) to a predetermined value (e.g., 0.5s, 0.6s, etc.). The predetermined value may be set based on an empirical value, or may be set based on the performance of the client, or may be set manually by a user. The above-mentioned timing screenshot function may be triggered by video playback, or may be manually enabled by a user. The above-mentioned timing screenshot function may capture the playback area of ​​the video screen in the current screen of the client (the screenshot may be taken by determining the position of the video screen through boundary positioning, etc.), or the current screen of the client, which includes the video screen. The above is only an example, and no limitation is made to this in this embodiment.

[0046] Optionally, detecting that the second screenshot image obtained by the screenshot contains one or more target image styles may include: converting the second screenshot image into a grayscale image; converting the grayscale image into a binary image; and detecting that the binary image contains one or more target image styles.

[0047] Optionally, in this embodiment, before identifying the detected QR code, the client may first determine whether a predetermined condition is met. For example, the time that the same QR code appears in the video screen exceeds a predetermined time (for example, 10 seconds, 1 minute, etc.). For another example, the clarity of the QR code exceeds a predetermined threshold. The above is only an example, and this embodiment does not make any limitation to this.

[0048] Optionally, in this embodiment, after detecting that the video screen played on the client contains a QR code, the position of the QR code in the video screen can be identified. The identification method can be a fixed-point identification method. For example, the position area (or position) of the three vertex corners of the QR code can be located to determine the position area of ​​the QR code. For another example, the position area (or position) of the center of the QR code and the position area (or position) of a vertex can be located to determine the position area of ​​the QR code. The above is only an example, and no limitation is made to this in this embodiment.

[0049] The following examples are used to illustrate this. Figure 4 As shown, after the position areas of the three vertices (vertices 1-3) of the two-dimensional code are identified, the position area of ​​the two-dimensional code can be located in combination with the shape of the two-dimensional code (for example, a rectangle).

[0050] Optionally, displaying the operation mark on the client may include: displaying a target window on the client, wherein the operation mark includes the target window. The operation mark may also include other reminder information, such as periodic flashing of the operation mark, hand shape, arrow shape and other reminder mark information.

[0051] Optionally, in this embodiment, the operation identifier may include a target window, and the shape of the target window may be a rectangle, a circle, a polygon, etc.; the position of the target window may be on the upper layer of the video screen or on the same layer of the video screen, and the target window may cover the position area of ​​the QR code or be staggered with the position area of ​​the QR code; the position size of the target window may be the same size as the position area of ​​the QR code, larger than the position area of ​​the QR code, smaller than the position area of ​​the QR code, etc.; the background color of the target window may be transparent, semi-transparent, opaque, etc.; the color of the target window may be white, black, yellow, etc. The above is only an example, and in this embodiment, no limitation is imposed on the shape, size, background color, color, position, etc. of the target window.

[0052] The following examples are used to illustrate this. Figure 5 As shown, the operation mark is a floating window, the color of the floating window is white, and the background color is semi-transparent. The floating window covers the location area of ​​the QR code and is slightly larger than the location area of ​​the QR code.

[0053] Optionally, in the present embodiment, during the process of playing the video screen on the client, the display position of the operation mark on the client may change. For example, the display position change of the operation mark may be moving along the four sides of the video screen or the client screen, or moving along the diagonal of the video screen or the client screen, or moving along any trajectory. The moving trajectory may be regular, such as a straight line, an arc, a broken line, etc., or irregular. The movement of the operation mark may be regular (e.g., uniform movement, accelerated movement, periodic change) or irregular.

[0054] Optionally, displaying the operation logo on the client includes: in the process of playing the video screen on the client, the display position of the operation logo on the client changes with the position change of the QR code in the video screen. If the position of the QR code moves, the position of the operation logo also moves. The display of the operation logo may be dependent on the QR code, for example, when the QR code appears, the operation logo is displayed; when the QR code disappears, the operation logo disappears. The display of the operation logo may also be independent of the QR code, for example, when the QR code appears, the operation logo is displayed, and the operation logo is still displayed. The above is only an example, and no limitation is made to this in this embodiment.

[0055] The following example is used to illustrate this. In this example, the operation is marked as a floating window. Figure 6 As shown, at time 1, the QR code is located at position A, and the floating window covers the QR code. At time 2, the QR code is located at position B, and the floating window covers the QR code. At time 3, the QR code is located at position C, and the floating window still covers the QR code.

[0056] Optionally, before the display position of the operation logo on the client changes with the position of the QR code in the video screen, the video screen can be screenshotted at a first time interval; and the position of the QR code in the first screenshot image obtained by the screenshot is detected.

[0057] Optionally, in this embodiment, the position of the QR code in the first screenshot can be detected by taking a screenshot, identifying the QR code, and determining the position information of the QR code as shown above, which will not be described in detail here.

[0058] In step S204, an operation instruction for triggering the operation mark is received. The operation instruction may be triggered by clicking the operation mark, and the triggering conditions may include but are not limited to:

[0059] 1) Clicking any position area in the operation mark may be: the clicked area and the area where the operation mark is located have an intersection, or the area of ​​the intersection of the clicked area and the area where the operation mark is located exceeds a predetermined value;

[0060] 2) Double-clicking an arbitrary position area in the operation mark may be: the double-clicked area and the area where the operation mark is located have an intersection, or the area of ​​the intersection of the double-clicked area and the area where the operation mark is located exceeds a predetermined value;

[0061] 3) Click anywhere in the operation mark to pop up a selection list for selecting the operation to be performed. Click the jump operation option in the selection list.

[0062] Optionally, in this embodiment, the selection list may further include other operation options, for example, a copy operation option, where the copy operation option is used to prompt the execution of a copy operation of copying the QR code or the QR code information.

[0063] In step S206, after receiving the operation instruction for triggering the operation identifier, jump to the page address indicated by the QR code according to the operation instruction, and display information in the target page indicated by the page address on the client.

[0064] Optionally, in this embodiment, the page address may be an address based on the HTTP protocol, or other page addresses that may be included in the QR code information, and the information included in the target page indicated by the page address may include, but is not limited to: web page information, telephone number, email address, electronic business card, etc. Optionally, the electronic business card may be a business card of a specific user or public account in a specific social network platform. The above is only an example, and this embodiment does not make any limitation to this.

[0065] The information jump method in this embodiment is specifically described with reference to the following examples. Figure 7 As shown in the upper right part, the video screen played on the client contains a QR code. In this example, the detection of the QR code in the video screen is completed by the timed screenshot function of the client. The QR code is identified by 3 matrices with fixed styles (i.e., the top corners of the QR code). The operation identifier is a floating window. After the floating window is created, it is located on the upper layer of the detected QR code and covers the QR code. The QR code information contains a news website, and the target operation is to jump to the news website indicated by the QR code.

[0066] When playing the video on the client, the information jump function of the client or a specific application in the client (for example, an application that can play the video) is enabled. After enabling this function, the timed screenshot module can be started to regularly take screenshots of the current screen of the client, which includes the current video. The time interval of the timed screenshot module is set to 0.5s.

[0067] The screenshot image obtained by the screenshot is analyzed to determine whether the screenshot image contains three fixed-style rectangles (i.e., a specific number of target image styles), and the arrangement ratio of black and white in the rectangles on the horizontal and / or vertical symmetry axes is fixed at 1:1:3:1:1. Since the three top corners of the QR code have such a fixed style, when the screenshot image contains three of the above fixed-style rectangles, it can be determined that the screenshot image contains a QR code. That is, the video screen played on the client contains a QR code.

[0068] The above-mentioned timed screenshot is executed in the background of the client and is transparent to the user (the user cannot feel the screenshot operation). At this time, the operation of detecting the QR code appearing in the video screen is executed inside the client, without the user pausing the video and using another terminal device to perform the code scanning operation, which simplifies the steps of information jump.

[0069] After detecting that the video screen contains a QR code, the position of the QR code in the screenshot image can be further determined. The client can determine the position area of ​​the QR code in the screenshot image according to the size and position of each vertex. After determining the position area of ​​the QR code in the screenshot image, the position area in the screenshot image can be captured to generate a QR code image.

[0070] After generating the QR code image, the client uses the system QR code recognition API to identify the QR code, parse the page address indicated by the QR code, and thus obtain the news URL indicated by the QR code.

[0071] After receiving the QR code information, the client creates a floating window. The position and size of the floating window are the same as the position and size of the QR code area, and the background color is semi-transparent. The touch event of the floating window is set to single click. The result of the touch is to jump to the news website indicated by the QR code and display the information on the news page indicated by the news website. At this time, the video screen displayed on the client is as follows: Figure 7 As shown in the upper left part, a floating window appears above the location area of ​​the QR code.

[0072] like Figure 7 As shown in the lower left part, after the client detects a touch event on the floating window (the user clicks the floating window) (i.e., receives an operation instruction for triggering the operation identifier), a jump operation is performed, and the content displayed on the client screen jumps to the display information of the news page indicated by the news URL, such as Figure 7 Shown in the lower right portion.

[0073] It should be noted that the use of screenshots and fixed-style matrices to detect the presence of a QR code in a video screen played on a client is only an example, and detection can also be performed in other ways, for example, the video code stream can be monitored, and the presence of a QR code in the video screen can be detected by a QR code identifier in the code stream. This embodiment does not limit how to detect the presence of a QR code in a video screen.

[0074] Through this embodiment, the method of displaying an operation mark on the terminal containing a QR code in the video being played and performing a jump display operation when receiving a touch operation of the operation mark is adopted. When the video screen being played on the client is detected to contain a QR code, the operation mark for prompting the jump operation is displayed on the client; and when the operation instruction for triggering the operation mark is received, the page address indicated by the QR code is jumped to, and the display information in the target page indicated by the page address is displayed, and it is no longer limited to information jump by operating two devices separately. Since there is no need to pause the video playback on one terminal device, the other terminal device performs a scan jump operation on the QR code embedded in the video screen, thereby achieving the technical effect of simplifying the information jump steps related to the QR code and improving the user experience. Further, by directly providing the viewer with an operation mark (operation entry) for prompting the jump operation in the client containing the QR code in the video screen being played, the diversity of QR code operations is also improved, and the user experience is further improved.

[0075] As an optional solution, displaying the operation mark on the client includes:

[0076] A target window is displayed on the client, wherein the operation identifier may include but is not limited to the target window.

[0077] Optionally, as an optional implementation, the target window is a window displayed in an upper layer of the video screen (ie, a floating window). Figure 5 As shown, the target window is located in the upper layer of the video screen. The position of the target window can be covered on the QR code, or can be displayed in a specific area, such as around the video screen, in the middle of the video screen, etc.

[0078] Optionally, as another optional implementation, the target window is a window displayed on the same layer of the video screen. The position of the target window can be overlaid on the QR code, or can be displayed in a specific area, such as around the video screen, in the middle of the video screen, etc.

[0079] The following examples are used to illustrate the specific situation. After obtaining the area of ​​the QR code, the QR code is identified in the following way:

[0080] 1) Intercept the area position of the QR code to generate a QR code image;

[0081] 2) Use the system QR code recognition API to identify and parse the page address corresponding to the QR code.

[0082] After parsing the page address corresponding to the QR code, a floating window is created on the client. The window position and size are the position and size of the QR code area, and the background color is transparent. According to the page address corresponding to the parsed QR code, the floating window provides user interface (UI) operation display, such as click jump and other operations.

[0083] Through this embodiment, the target operation is indicated in the form of a target window, the display is intuitive, and the operation is simple, thus improving the intuitiveness and operability of the operation indicator display.

[0084] As an optional solution, displaying the operation mark on the client includes:

[0085] During the video playback on the client, the display position of the operation logo on the client changes as the position of the QR code in the video changes.

[0086] Optionally, before the display position of the operation mark on the client changes with the position change of the QR code in the video screen, the method further includes:

[0087] S1, taking screenshots of the video screen at a first time interval;

[0088] S2, detecting the position of the QR code in the first screenshot image obtained by taking the screenshot.

[0089] The following example is used for specific explanation. In this example, the display position of the operation mark on the client changes with the position of the QR code in the video screen, and the operation mark is a floating window.

[0090] In this example, a tracking module is created using the CMT (Clustering of Static-Adaptive Correspondences for Deformable Object Tracking) tracking algorithm, the tracking area is the area where the QR code is located, and the tracking module timer is started. The initialization process of the tracking module may include the following steps:

[0091] 1) Convert the screenshot image (the screenshot image at the time of initialization) into a grayscale image;

[0092] 2) If the length or width of the image is greater than 1500 pixels, compress the grayscale image to a size of 1500*1500 pixels (this size is sufficient to ensure the accuracy of the algorithm and is highly efficient). The tracking area is also transformed to the corresponding area;

[0093] 3) Use the FAST detector to detect all key feature points of the initial image (e.g., the three corners of a QR code with a fixed pattern);

[0094] 4) Divide the image into foreground and background (e.g., the foreground includes the location area of ​​the QR code, and the background includes the location area of ​​the non-QR code);

[0095] 5) Create the initial active points, i.e., the coordinates of the foreground key points.

[0096] The tracking module uses the logic of taking screenshots at a set time interval (i.e., the first timing interval, for example, 0.2s), and uses the CMT algorithm to track the logic module. The process of the tracking module tracking the location area where the QR code is located includes the following steps:

[0097] 1) Convert the screenshot image (the screenshot image during the tracking process) into a grayscale image;

[0098] 2) If the image length or width is greater than 1500 pixels, compress the grayscale image to within 1500*1500 pixels (consistent with the size when it was created).

[0099] 3) Use the optical flow method to calculate the current position of the key point.

[0100] 4) Use global matching and local matching to obtain the new position of the tracking area (ie, the location area where the QR code is located).

[0101] 5) Convert the new location area to the area corresponding to the original image size.

[0102] Update the QR code area to the new position and update the position of the floating window.

[0103] Through this embodiment, by changing the display position of the operation mark on the client, the user can be reminded that there is an operation mark on the client, avoiding the user's omission of the operation mark. Furthermore, the operation mark moves with the QR code, and the user experience is more natural, which improves the user experience. Furthermore, the position of the QR code is determined by taking screenshots of the video screen at a fixed time. Since the timing interval can be flexibly adjusted and it is not necessary to monitor every frame in the video, the occupation of the client's software and hardware resources is reduced.

[0104] As an optional solution, before displaying the operation mark on the client, the method further includes:

[0105] S1, detecting that the video played on the client contains a QR code;

[0106] S2, identifying the detected two-dimensional code to obtain two-dimensional code information, wherein the two-dimensional code information is used to identify the page address.

[0107] Through this embodiment, by detecting that the video screen played on the client contains a QR code and identifying the detected QR code to obtain QR code information, the QR code in the video screen can be detected and identified to provide page address information for information jump.

[0108] As an optional solution, detecting that a video screen played on a client contains a QR code includes:

[0109] S1, taking a screenshot of the video screen at a second time interval;

[0110] S2, detecting that the second screenshot image obtained by taking the screenshot contains one or more target image styles, wherein the target image style is used to identify the QR code.

[0111] Optionally, detecting that the second screenshot image obtained by taking the screenshot contains one or more target image styles includes:

[0112] S21, converting the second screenshot image into a grayscale image;

[0113] S22, converting the grayscale image into a binary image;

[0114] S23, detecting that the binary image contains one or more target image styles.

[0115] Optionally, the specified image style is that pixels of at least two colors are arranged in a specified ratio in a specified direction within a region of a specified shape.

[0116] The following example is used to illustrate the above. First, the function of identifying the QR code in the client or application is enabled. The timed screenshot module is started, and the timed interval (ie, the second timed interval, for example, is 0.5s) is set to capture the current screen at a fixed time to generate a screenshot image.

[0117] Identify whether there is a QR code in the screenshot, and if so, get the location of the QR code. The specific process is as follows:

[0118] 1) Convert the screenshot image to a grayscale image using the cvtColor method of the opencv library. The converted grayscale image is as follows Figure 8 shown.

[0119] 2) Use Otsu binarization method to degrade the grayscale image into a binary image. The degraded binary image is as follows Fig. 9 shown.

[0120] 3) Identify whether there is a QR code in the binary image.

[0121] The three corners of the QR code rectangle have a fixed style, and the ratio of black to white in the corner rectangle is fixed, which is 1:1:3:1:1. Fig.10 shown.

[0122] If the binary image contains three top corners of a fixed pattern, it can be determined that a two-dimensional code appears in the video picture, that is, it is detected that the video picture contains a two-dimensional code.

[0123] After detecting that the video screen contains a QR code, the position of the QR code in the video screen can be further determined. The findContours method in the opencv image library can be used for contour detection to obtain all contours in the image. Then, based on the ratio and position of the vertex rectangle, the position area of ​​the QR code in the screenshot can be obtained.

[0124] Optionally, the second timing interval may be the same as or different from the first timing interval. Optionally, when the second timing interval is different from the first timing interval, the second timing interval may be longer than the first timing interval.

[0125] Through this embodiment, the method of regularly taking screenshots of the video screen is adopted to determine whether the video screen contains a QR code. Since the timing interval can be flexibly adjusted and it is not necessary to monitor every frame in the video, the occupation of the client's software and hardware resources is reduced. Furthermore, by setting the first timing interval to be shorter than the second timing interval, the position change of the QR code can be tracked more effectively, and the efficiency of information jump is improved.

[0126] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

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

[0128] According to another aspect of the embodiment of the present invention, there is also provided an information jump device for implementing the above information jump method. Fig.11 As shown, the device comprises:

[0129] 1) A display unit 1102 is used to display an operation mark on the client when it is detected that the video screen played on the client contains a QR code, wherein the operation mark is used to prompt the execution of a target operation, and the target operation is to jump to the page address indicated by the QR code;

[0130] 2) A receiving unit 1104, configured to receive an operation instruction for triggering an operation identifier;

[0131] 3) Jump unit 1106, used to jump to the page address according to the operation instruction, and display the display information in the target page indicated by the page address.

[0132] Optionally, in this embodiment, the information jump device can be applied to, but not limited to, a scenario where a video containing a QR code is played on a client and a jump display is performed, such as a scenario where a multimedia file containing information that can be jumped is played. The above is only an example, and this embodiment does not make any limitation to this.

[0133] It should be noted that the display unit 1102 in this embodiment can be used to execute step S202 in this embodiment, the receiving unit 1104 in the embodiment can be used to execute step S204 in this embodiment, and the jump unit 1106 in this embodiment can be used to execute step S206 in this embodiment.

[0134] It should be noted that the above modules and corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in this embodiment. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware.

[0135] Optionally, in this embodiment, the video to which the video screen played on the client belongs may include but is not limited to:

[0136] 1) Videos watched online, for example, videos watched online by a client through a video playback website or video playback application, which may be a professional website or application for video playback, or other websites or applications capable of video playback, or videos watched online by a client through a live broadcast platform;

[0137] 2) Videos played after being cached or downloaded (for example, videos cached or downloaded by the client through a video playback website, video playback application, or download software);

[0138] 3) Videos acquired and played by the client through other means, for example, videos directly sent by other devices through the network or other connection methods (such as Bluetooth).

[0139] The above is only an example of how to obtain and play the video to which the video screen belongs, and this embodiment does not impose any limitation on this.

[0140] Optionally, in this embodiment, the client can play the video screen through a video playing website, video playing software, a plug-in in a web page, etc. The above is only an example, and this embodiment does not make any limitation to this.

[0141] Optionally, in this embodiment, the position where the two-dimensional code appears in the video screen can be arbitrary. For example, the two-dimensional code can appear in the peripheral position, middle position, left half area, right half area, etc. of the video screen. The position where the two-dimensional code appears in the video screen can be fixed or variable, or it can be fixed for a certain period of time and variable for another period of time. The change of the position of the two-dimensional code can be regular (for example, uniform movement, accelerated movement, periodic change) or irregular. The trajectory of the change of the position of the two-dimensional code has a specific shape (straight line, oblique line, arc, etc.) or has no specific shape. The time period in which the two-dimensional code appears in the video screen can be arbitrary. For example, the two-dimensional code appears all the time during the video playback. For another example, when the video is played to a certain time point, the two-dimensional code appears, or disappears. For another example, when a specific object (specific role, specific commodity) appears in the video screen, the two-dimensional code appears. The two-dimensional code and the video screen can be in the same layer or in different layers. The above is only an example, and this embodiment does not make any limitation to this.

[0142] Optionally, in this embodiment, the QR code can be identified by a target image style. The target image style can be any image style used to identify the QR code, for example, three corners of the rectangular frame of the QR code have a fixed style (i.e., the target image style). For another example, there is a fixed style in the middle area and at least one corner of the rectangular frame of the QR code. The fixed style can be a specific shape (e.g., a rectangle, a circle), and at least two colors of pixels are arranged in a specified ratio in a specific direction.

[0143] The following examples are used to illustrate this. Figure 3 As shown, the video screen is played in the client. When the video is played to 00:30:10 (30 minutes and 10 seconds), a QR code appears in the lower right corner of the target video. The specific structure of the QR code is as follows Figure 4 As shown, the QR code is in a rectangular structure, and there are fixed patterns in the upper left corner, upper right corner and lower left corner of the QR code (the fixed pattern is displayed in the form of a grid, and there is no grid in the actual display). In the fixed pattern, the ratio of black to white is fixed, which is 1:1:3:1:1.

[0144] Optionally, before the operation mark is displayed on the client, it can be detected that the video screen played on the client contains a QR code; the detected QR code is identified to obtain QR code information (data symbol information), wherein the QR code information is used to identify the page address.

[0145] Optionally, in this embodiment, after the QR code is identified, the location area where the QR code is located can be captured to generate a picture of the QR code, and the system QR code recognition API can be used to identify it and parse the QR code information (data symbol information) to obtain the page address identified by the QR code information.

[0146] Optionally, in this embodiment, the above parsing process may be performed before the operation identifier is displayed, or may be performed after the operation identifier is displayed, for example, may be performed after the operation instruction is received.

[0147] Optionally, detecting that a video screen played on the client contains a QR code may include: taking a screenshot of the video screen at a second timing interval; detecting that a second screenshot image obtained by the screenshot contains one or more target image styles, wherein the target image style is used to identify the QR code.

[0148] Optionally, in this embodiment, the timed screenshot function is started, and the timed interval (i.e., the second timed interval) is set to a predetermined value (e.g., 0.5s, 0.6s, etc.). The predetermined value can be set according to an empirical value, or can be set according to the performance of the client, or can be set manually by the user. The above-mentioned timed screenshot function can be triggered by video playback, or can be manually enabled by the user. The above-mentioned timed screenshot function can capture the playback area of ​​the video screen in the current screen of the client (the screenshot can be taken by determining the position of the video screen through boundary positioning, etc.), or it can be the current screen of the client, which contains the video screen. The above is only an example, and this embodiment does not make any limitation to this.

[0149] Optionally, detecting that the second screenshot image obtained by the screenshot contains one or more target image styles may include: converting the second screenshot image into a grayscale image; converting the grayscale image into a binary image; and detecting that the binary image contains one or more target image styles.

[0150] Optionally, in this embodiment, before identifying the detected QR code, the client may first determine whether a predetermined condition is met. For example, the time that the same QR code appears in the video screen exceeds a predetermined time (for example, 10 seconds, 1 minute, etc.). For another example, the clarity of the QR code exceeds a predetermined threshold. The above is only an example, and this embodiment does not make any limitation to this.

[0151] Optionally, in this embodiment, after detecting that the video screen played on the client contains a QR code, the position of the QR code in the video screen can be identified. The identification method can be a fixed-point identification method. For example, the position area (or position) of the three vertex corners of the QR code can be located to determine the position area of ​​the QR code. For another example, the position area (or position) of the center of the QR code and the position area (or position) of a vertex can be located to determine the position area of ​​the QR code. The above is only an example, and no limitation is made to this in this embodiment.

[0152] The following examples are used to illustrate this. Figure 4 As shown, after the position areas of the three vertices (vertices 1-3) of the two-dimensional code are identified, the position area of ​​the two-dimensional code can be located in combination with the shape of the two-dimensional code (for example, a rectangle).

[0153] Optionally, displaying the operation mark on the client may include: displaying a target window on the client, wherein the operation mark includes the target window. The operation mark may also include other reminder information, such as periodic flashing of the operation mark, hand shape, arrow shape and other reminder mark information.

[0154] Optionally, in this embodiment, the operation identifier may include a target window, and the shape of the target window may be a rectangle, a circle, a polygon, etc.; the position of the target window may be on the upper layer of the video screen or on the same layer of the video screen, and the target window may cover the position area of ​​the QR code or be staggered with the position area of ​​the QR code; the position size of the target window may be the same size as the position area of ​​the QR code, larger than the position area of ​​the QR code, smaller than the position area of ​​the QR code, etc.; the background color of the target window may be transparent, semi-transparent, opaque, etc.; the color of the target window may be white, black, yellow, etc. The above is only an example, and in this embodiment, no limitation is imposed on the shape, size, background color, color, position, etc. of the target window.

[0155] The following examples are used to illustrate this. Figure 5 As shown, the operation mark is a floating window, the color of the floating window is white, and the background color is semi-transparent. The floating window covers the location area of ​​the QR code and is slightly larger than the location area of ​​the QR code.

[0156] Optionally, in the present embodiment, during the process of playing the video screen on the client, the display position of the operation mark on the client may change. For example, the display position change of the operation mark may be moving along the four sides of the video screen or the client screen, or moving along the diagonal of the video screen or the client screen, or moving along any trajectory. The moving trajectory may be regular, such as a straight line, an arc, a broken line, etc., or irregular. The movement of the operation mark may be regular (e.g., uniform movement, accelerated movement, periodic change) or irregular.

[0157] Optionally, displaying the operation logo on the client includes: in the process of playing the video screen on the client, the display position of the operation logo on the client changes with the position change of the QR code in the video screen. If the position of the QR code moves, the position of the operation logo also moves. The display of the operation logo may be dependent on the QR code, for example, when the QR code appears, the operation logo is displayed; when the QR code disappears, the operation logo disappears. The display of the operation logo may also be independent of the QR code, for example, when the QR code appears, the operation logo is displayed, and the operation logo is still displayed. The above is only an example, and no limitation is made to this in this embodiment.

[0158] The following example is used to illustrate this. In this example, the operation is marked as a floating window. Figure 6 As shown, at time 1, the QR code is located at position A, and the floating window covers the QR code. At time 2, the QR code is located at position B, and the floating window covers the QR code. At time 3, the QR code is located at position C, and the floating window still covers the QR code.

[0159] Optionally, before the display position of the operation logo on the client changes with the position of the QR code in the video screen, the video screen can be screenshotted at a first time interval; and the position of the QR code in the first screenshot image obtained by the screenshot is detected.

[0160] Optionally, in this embodiment, the position of the QR code in the first screenshot can be detected by taking a screenshot, identifying the QR code, and determining the position information of the QR code as shown above, which will not be described in detail here.

[0161] Optionally, an operation instruction for triggering the operation identifier is received. The operation instruction may be triggered by clicking the operation identifier, and the triggering conditions may include but are not limited to:

[0162] 1) Clicking any position area in the operation mark may be: the clicked area and the area where the operation mark is located have an intersection, or the area of ​​the intersection of the clicked area and the area where the operation mark is located exceeds a predetermined value;

[0163] 2) Double-clicking an arbitrary position area in the operation mark may be: the double-clicked area and the area where the operation mark is located have an intersection, or the area of ​​the intersection of the double-clicked area and the area where the operation mark is located exceeds a predetermined value;

[0164] 3) Click anywhere in the operation mark to pop up a selection list for selecting the operation to be performed. Click the jump operation option in the selection list.

[0165] Optionally, in this embodiment, the selection list may further include other operation options, for example, a copy operation option, where the copy operation option is used to prompt the execution of a copy operation of copying the QR code or the QR code information.

[0166] Optionally, after receiving an operation instruction for triggering the operation identifier, according to the operation instruction, jump to the page address indicated by the QR code, and display information in the target page indicated by the page address on the client.

[0167] Optionally, in this embodiment, the page address may be an address based on the HTTP protocol, or other page addresses that may be included in the QR code information, and the information included in the target page indicated by the page address may include, but is not limited to: web page information, telephone number, email address, electronic business card, etc. Optionally, the electronic business card may be a business card of a specific user or public account in a specific social network platform. The above is only an example, and this embodiment does not make any limitation to this.

[0168] Through this embodiment, the method of displaying an operation mark on the terminal containing a QR code in the video being played and performing a jump display operation when receiving a touch operation of the operation mark is adopted. When the video screen being played on the client is detected to contain a QR code, the operation mark for prompting the jump operation is displayed on the client; and when the operation instruction for triggering the operation mark is received, the page address indicated by the QR code is jumped to, and the display information in the target page indicated by the page address is displayed, and it is no longer limited to information jump by operating two devices separately. Since there is no need to pause the video playback on one terminal device, the other terminal device performs a scan jump operation on the QR code embedded in the video screen, thereby achieving the technical effect of simplifying the information jump steps related to the QR code and improving the user experience. Further, by directly providing the viewer with an operation mark (operation entry) for prompting the jump operation in the client containing the QR code in the video screen being played, the diversity of QR code operations is also improved, and the user experience is further improved.

[0169] As an optional solution, the display unit 1102 includes:

[0170] (1) a first display module, configured to display a target window on the client, wherein the operation identifier includes the target window;

[0171] (2) A second display module is used to change the display position of the operation mark on the client during the process of playing the video screen on the client.

[0172] Optionally, as an optional implementation, the target window is a window displayed in an upper layer of the video screen (ie, a floating window). Figure 5 As shown, the target window is located in the upper layer of the video screen. The position of the target window can be covered on the QR code, or can be displayed in a specific area, such as around the video screen, in the middle of the video screen, etc.

[0173] Optionally, as another optional implementation, the target window is a window displayed on the same layer of the video screen. The position of the target window can be overlaid on the QR code, or can be displayed in a specific area, such as around the video screen, in the middle of the video screen, etc.

[0174] The following examples are used to illustrate the specific situation. After obtaining the location area of ​​the QR code, the QR code is identified in the following way:

[0175] 1) Intercept the location area of ​​the QR code to generate a QR code image;

[0176] 2) Use the system QR code recognition API to identify and parse the page address corresponding to the QR code.

[0177] After parsing the page address corresponding to the QR code, a floating window is created on the client. The window position and size are the same as the position and size of the QR code area, and the background color is transparent. According to the page address corresponding to the parsed QR code, different UI operations are displayed in the floating window, such as click jump and other operations.

[0178] Optionally, the above device further includes:

[0179] A screenshot unit, used to take a screenshot of the video screen at a first time interval;

[0180] The first detection unit is used to detect the position of the QR code in the first screenshot image obtained by the screenshot.

[0181] The following examples are used for specific explanation. In this example, the display position of the operation mark on the client changes with the position of the QR code in the video screen, and the operation mark is a floating window.

[0182] In this example, a tracking module is created using the CMT tracking algorithm, and the tracking area is the location area where the QR code is located. The tracking module timer is started. The initialization process of the tracking module may include the following steps:

[0183] 1) Convert the screenshot image to a grayscale image (the screenshot image at the time of initialization);

[0184] 2) If the length or width of the image is greater than 1500 pixels, compress the grayscale image to a size of 1500*1500 pixels (this size is sufficient to ensure the accuracy of the algorithm and is highly efficient). The tracking area is also transformed to the corresponding area;

[0185] 3) Use the FAST detector to detect all key feature points of the initial image (e.g., the three corners of a QR code with a fixed pattern);

[0186] 4) Divide the image into foreground and background (eg, the foreground includes the location area of ​​the QR code, and the background includes the location area of ​​the non-QR code).

[0187] 5) Create the initial active points, i.e., the coordinates of the foreground key points.

[0188] The tracking module uses the logic of taking screenshots at a set time interval (i.e., the first timing interval, for example, 0.2s), and uses the CMT algorithm to track the logic module. The process of the tracking module tracking the location area where the QR code is located includes the following steps:

[0189] 1) Convert the screenshot image (the screenshot image during the tracking process) into a grayscale image.

[0190] 2) If the image length or width is greater than 1500 pixels, compress the grayscale image to within 1500*1500 pixels (consistent with the size when it was created);

[0191] 3) Use the optical flow method to calculate the current position of the key point;

[0192] 4) Using global matching and local matching to obtain the new position of the tracking area (i.e., the QR code area);

[0193] 5) Convert the new location area to the area corresponding to the original image size.

[0194] Update the QR code area to the new position and update the position of the floating window.

[0195] Through this embodiment, the target operation is prompted to be executed in the form of a target window, which is intuitive and easy to operate. Therefore, the intuitiveness and operability of the operation mark display are improved. Furthermore, the user experience is more natural and improved by following the QR code to move the operation mark. Furthermore, the position of the QR code is determined by taking screenshots of the video screen at a fixed time. Since the timing interval can be flexibly adjusted and it is not necessary to monitor every frame in each video, the occupation of client software and hardware resources is reduced.

[0196] As an optional solution, the device also includes:

[0197] A second detection unit is used to detect that a video picture played on the client contains a QR code;

[0198] The recognition unit is used to recognize the detected two-dimensional code to obtain two-dimensional code information, wherein the two-dimensional code information is used to identify the page address.

[0199] Optionally, the second detection unit includes:

[0200] (1) a screenshot module, used to take a screenshot of the video screen at a second time interval;

[0201] (2) A detection module, used to detect that the second screenshot image obtained by the screenshot contains one or more target image patterns, wherein the target image pattern is used to identify the QR code.

[0202] Optionally, the detection module includes:

[0203] (1) a first conversion submodule, configured to convert the second screenshot image into a grayscale image;

[0204] (2) a second conversion submodule, used to convert the grayscale image into a binary image;

[0205] (3) A detection submodule, which is used to detect that the binary image contains one or more target image styles.

[0206] Optionally, the specified image style is that pixels of at least two colors are arranged in a specified ratio in a specified direction within a region of a specified shape.

[0207] The following is explained with reference to a specific example. First, the function of identifying a QR code in the client or application is enabled. The timed screenshot module is started, and a timed interval (ie, a second timed interval, for example, 0.5s) is set to capture the current screen at a fixed time to generate a screenshot image.

[0208] Identify whether there is a QR code in the screenshot, and if so, get the location of the QR code. The specific process is as follows

[0209] 1) Convert the screenshot image to a grayscale image using the cvtColor method of the opencv library. The converted grayscale image is as follows Figure 8 shown.

[0210] 2) Use Otsu binarization method to degrade the grayscale image into a binary image. The degraded binary image is as follows Fig. 9 shown.

[0211] 3) Identify whether there is a QR code in the binary image.

[0212] Since there are three fixed corners in the QR code rectangle, and the ratio of black to white in the corner rectangle is fixed, which is 1:1:3:1:1. Fig.10 shown.

[0213] If the binary image contains three top corners of a fixed pattern, it can be determined that a two-dimensional code appears in the video picture, that is, it is detected that the video picture contains a two-dimensional code.

[0214] After detecting the presence of a QR code in the video screen, the position of the QR code in the video screen can be further determined. The findContours method in the opencv image library can be used for contour detection to obtain all contours in the image. Then, based on the ratio and position of the vertex rectangle, the position area of ​​the QR code in the screenshot image can be obtained.

[0215] Optionally, the second timing interval may be the same as or different from the first timing interval. Optionally, the second timing interval may be longer than the first timing interval.

[0216] Through this embodiment, by detecting whether the video screen played on the client contains a QR code and identifying the detected QR code to obtain the QR code information, the QR code in the video screen can be detected and identified, and the page address information can be provided for information jump. Furthermore, the method of taking screenshots of the video screen at regular intervals is used to determine whether the video screen contains a QR code. Since the timing interval can be flexibly adjusted and it is not necessary to monitor every frame in the video, the occupation of the client's software and hardware resources is reduced. Furthermore, setting the first timing interval to be shorter than the second timing interval can more effectively track the position change of the QR code, thereby improving the efficiency of information jump.

[0217] According to another aspect of the embodiments of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0218] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0219] S1, when it is detected that a video screen played on a client contains a QR code, an operation mark is displayed on the client, wherein the operation mark is used to prompt to perform a target operation, and the target operation is to jump to a page address indicated by the QR code;

[0220] S2, receiving an operation instruction for triggering an operation identifier;

[0221] S3, according to the operation instruction, jump to the page address, and display the display information in the target page indicated by the page address.

[0222] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0223] A target window is displayed on the client, wherein the operation identifier includes the target window.

[0224] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0225] During the video playback on the client, the display position of the operation logo on the client changes as the position of the QR code in the video changes.

[0226] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0227] S1, taking screenshots of the video screen at a first time interval;

[0228] S2, detecting the position of the QR code in the first screenshot image obtained by taking the screenshot.

[0229] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0230] S1, detecting that the video played on the client contains a QR code;

[0231] S2, identifying the detected two-dimensional code to obtain two-dimensional code information, wherein the two-dimensional code information is used to identify the page address.

[0232] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0233] S1, taking a screenshot of the video screen at a second time interval;

[0234] S2, detecting that the second screenshot image obtained by taking the screenshot contains one or more target image styles, wherein the target image style is used to identify the QR code.

[0235] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0236] S1, converting the second screenshot image into a grayscale image;

[0237] S2, converts the grayscale image into a binary image;

[0238] S3, detecting that the binary image contains one or more target image styles.

[0239] Optionally, the storage medium is also configured to store a computer program for executing the steps included in the method in the above embodiment, which will not be described in detail in this embodiment.

[0240] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0241] According to another aspect of the embodiments of the present invention, an electronic device for implementing the above-mentioned information jump method is also provided. Fig.12 As shown, the electronic device includes a processor 1202 and a memory 1204, wherein the memory 1204 stores a computer program, and the processor 1202 is configured to execute the steps in any of the above method embodiments through the computer program.

[0242] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0243] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0244] S1, when it is detected that a video screen played on a client contains a QR code, an operation mark is displayed on the client, wherein the operation mark is used to prompt to perform a target operation, and the target operation is to jump to a page address indicated by the QR code;

[0245] S2, receiving an operation instruction for triggering an operation identifier;

[0246] S3, according to the operation instruction, jump to the page address, and display the display information in the target page indicated by the page address.

[0247] Alternatively, a person skilled in the art may understand that: Fig.12 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Fig.12 The structure of the electronic device is not limited. Fig.12 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.12 Different configurations are shown.

[0248] Among them, the memory 1204 can be used to store software programs and modules, such as program instructions / modules corresponding to the information jump method and device in the embodiment of the present invention. The processor 1202 executes various functional applications and data processing by running the software programs and modules stored in the memory 1204, that is, realizing the above-mentioned information jump method. The memory 1204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1204 may further include a memory remotely arranged relative to the processor 1202, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0249] Optionally, in this embodiment, the electronic device further includes a transmission device 1210, which is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1210 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1210 is a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0250] Optionally, in this embodiment, the electronic device further includes: a user interface 1206 and a display 1208, wherein the display 1208 is used to display video images and operation identifiers, and the user interface 1206 is used to obtain operation instructions corresponding to the operation, wherein the operations may include but are not limited to: touch screen operations, click operations, voice input operations, etc.

[0251] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0252] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.

[0253] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0254] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0255] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0256] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0257] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An information jump method, characterized in that: include: Taking screenshots of the video screen played on the client at a second time interval; In the case where it is detected that the second screenshot image obtained by the screenshot contains one or more target image styles, a screenshot of the video screen played on the client is taken at a first time interval, the position of the QR code in the first screenshot image is determined, and an operation identifier is displayed during the video screen being played on the client, wherein the target image style is used to identify the QR code, the target image style is at least two colors of pixels arranged in a specified proportion in a specified direction within an area of ​​a specified shape, the operation identifier is used to prompt the execution of a target operation, the target operation is to jump to the page address indicated by the QR code, the display position of the operation identifier on the client changes with the position of the QR code in the video screen, the display duration of the operation identifier is greater than the display duration of the QR code, the operation identifier is covered on the position area of ​​the QR code when serving as a floating window, and the display area of ​​the floating window is greater than the display area of ​​the position area; Receiving an operation instruction for triggering the operation identifier; According to the operation instruction, jump to the page address and display the display information in the target page indicated by the page address; The triggering condition of the operation instruction includes at least one of the following: Click any position area in the operation mark; Double-click any position area in the operation mark; Click any position area in the operation identifier to pop up a selection list for selecting an operation to be performed, and click a jump operation option in the selection list.

2. The method according to claim 1, characterized in that Displaying the operation identifier on the client includes: A target window is displayed on the client, wherein the operation identifier includes the target window.

3. The method according to claim 2, characterized in that The target window is a window displayed on the upper layer of the video screen; or, The target window is a window displayed on the same layer as the video screen.

4. The method according to any one of claims 1 to 3, characterized in that Before displaying the operation identifier on the client, the method further includes: Detecting that the video picture played on the client contains the QR code; The detected two-dimensional code is identified to obtain two-dimensional code information, wherein the two-dimensional code information is used to identify the page address.

5. The method according to claim 1, characterized in that The second screenshot image obtained by detecting that the screenshot contains one or more of the target image styles includes: Converting the second screenshot image into a grayscale image; Converting the grayscale image into a binary image; It is detected that the binary image contains one or more target image styles.

6. An information jump device, characterized in that: include: A display unit, configured to display an operation identifier on a client when it is detected that the second screenshot image obtained by the screenshot contains one or more target image styles, wherein the operation identifier is used to prompt the execution of a target operation, the target operation is to jump to a page address indicated by a QR code, the target image style is pixels of at least two colors arranged in a specified proportion in a specified direction within an area of ​​a specified shape, the display duration of the operation identifier is greater than the display duration of the QR code, the operation identifier is covered on a location area of ​​the QR code when serving as a floating window, and the display area of ​​the floating window is greater than the display area of ​​the location area; A receiving unit, used to receive an operation instruction for triggering the operation identifier; A jump unit, used to jump to the page address according to the operation instruction, and display the display information in the target page indicated by the page address; The display unit comprises: a first display module, configured to display a target window on the client, wherein the operation identifier includes the target window; and A second display module is used for causing the display position of the operation mark on the client to change as the position of the QR code in the video screen changes during the video screen is played on the client; The device also includes: A screenshot unit, used to take a screenshot of the video screen at a first time interval; A first detection unit, used to detect a position of the QR code in a first screenshot image obtained by taking a screenshot; The device also includes: A second detection unit, configured to detect that the video picture played on the client contains the QR code; an identification unit, configured to identify the detected two-dimensional code to obtain two-dimensional code information, wherein the two-dimensional code information is used to identify the page address; The second detection unit includes: a screenshot module, which is used to take a screenshot of the video screen at a second time interval; a detection module, which is used to detect that the second screenshot image obtained by the screenshot contains one or more target image patterns, wherein the target image pattern is used to identify the QR code; The triggering condition of the operation instruction includes at least one of the following: Click any position area in the operation mark; Double-click any position area in the operation mark; Click any position area in the operation identifier to pop up a selection list for selecting an operation to be performed, and click a jump operation option in the selection list.

7. The device according to claim 6, characterized in that The device also includes: A second detection unit, configured to detect that the video picture played on the client contains the QR code; The identification unit is used to identify the detected two-dimensional code to obtain two-dimensional code information, wherein the two-dimensional code information is used to identify the page address.

8. The device according to claim 6, characterized in that The detection module comprises: A first conversion submodule, used for converting the second screenshot image into a grayscale image; A second conversion submodule, used for converting the grayscale image into a binary image; The detection submodule is used to detect that the binary image contains one or more target image styles.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 through the computer program.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for acquiring two-dimensional code in video

    CN101510269A

  • Method, device, equipment and system for presenting display information in video

    CN102419945A

  • Method and system for interaction with television programs

    CN102647618A

  • Method and device of acquiring clothing two-dimension code in video

    CN103065148A

  • Processing method and device of quick response codes, video playing apparatus

    CN104703020A