Video content shielding method, device, equipment, storage medium and program product

By identifying and filling shielded materials in video frames, it solves the problem of content that users don't like being unable to shield during video playback, and improves video continuity and viewing experience.

CN114339361BActive Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111212185.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-18
Publication Date
2024-09-10
Estimated Expiration
2041-10-18

AI Technical Summary

Technical Problem

During video playback, actors or scenes that users do not want to see cannot be effectively blocked, causing the video viewing experience to be affected, and existing methods may cause video continuity to be broken and key information to be missed.

Method used

By identifying the area of ​​the object to be blocked in the video frame, and filling the area with blocking materials, such as mosaic, to block the content that the user does not like, thereby ensuring the continuous playback of the video and improving the viewing experience.

Benefits of technology

It is possible to effectively block video content that users do not like while maintaining video continuity, avoid missing key information, and improve the user's video viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339361B
    Figure CN114339361B
Patent Text Reader

Abstract

The present application discloses a video content shielding method, apparatus, device, storage medium and program product. When a user wants to play a certain video, such as a first video, a play operation is performed on the first video, and the terminal device plays the first video in response to the play operation on the first video. In the process of playing the first video, if the first video frame in the first video includes an object to be shielded, when the terminal device plays the first video frame, the video area to be shielded of the first video frame is filled with shielding material, thereby ensuring that the first video is played continuously, and filtering out the video content that the user does not like by blocking the shielding material. This solution shields any video area that the user is not interested in by filling the shielding material with the shielding video area to be shielded. While filtering out the video content that the user does not like, it avoids missing key information in the video, ensures the continuity of video viewing, and improves the user's video viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a video content shielding method, device, equipment, storage medium and program product. Background Art

[0002] With the popularization of terminal devices and the development of the Internet, users can watch videos on various types of terminal devices, for example, by installing a video application (Application, APP) or calling a player in a browser to play the video.

[0003] When playing a video, you may encounter some bloody, violent, thrilling, or inappropriate clips for children. These clips are what users do not want to watch, or users may dislike certain actors and do not want to see them in the video. However, due to plot requirements, these video clips cannot be edited. In order to prevent users from seeing actors or scenes they do not like in the video, they can skip the corresponding clips by fast-forwarding the video.

[0004] However, this method may result in missing key information in the video, sacrificing the continuity of the video, making it impossible for users to watch the video smoothly, and reducing the user's video viewing experience. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a video content shielding method, device, equipment, storage medium and program product, which can filter out video content that users do not like while avoiding missing key information in the video, ensuring the continuity of video viewing, and improving the user's video viewing experience.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] On the one hand, an embodiment of the present application provides a video content shielding method, the method comprising:

[0008] In response to a play operation on a first video, play the first video;

[0009] During the process of playing the first video, if the first video frame in the first video includes an object to be shielded, then when playing the first video frame, the video area to be shielded of the first video frame is filled with shielding material, and the video area to be shielded is the area corresponding to the object to be shielded in the first video frame.

[0010] On the other hand, an embodiment of the present application provides a video content shielding method, the method comprising:

[0011] Get the first video;

[0012] If it is determined that the first video frame of the first video includes the object to be shielded, determining a video area to be shielded, where the video area to be shielded is an area corresponding to the object to be shielded in the first video frame;

[0013] The to-be-shielded video area is filled with shielding material, so that during the process of playing the first video, when playing the first video frame, the to-be-shielded video area of ​​the first video frame is filled with the shielding material.

[0014] On the other hand, an embodiment of the present application provides a video content shielding device, the device comprising a playback unit and a display unit:

[0015] The playing unit is configured to play the first video in response to a playing operation on the first video;

[0016] The display unit is used to, during the process of playing the first video, if the first video frame in the first video includes an object to be shielded, then when the first video frame is played, the video area to be shielded of the first video frame is filled with shielding material, and the video area to be shielded is the area corresponding to the object to be shielded in the first video frame.

[0017] On the other hand, an embodiment of the present application provides a video content shielding device, the device comprising an acquisition unit, a determination unit and a filling unit:

[0018] The acquisition unit is used to acquire the first video;

[0019] The determining unit is configured to determine a video region to be shielded if it is determined that the first video frame of the first video includes the object to be shielded, wherein the video region to be shielded is a region corresponding to the object to be shielded in the first video frame;

[0020] The filling unit is used to fill the to-be-shielded video area with shielding material, so that during the process of playing the first video, when playing the first video frame, the to-be-shielded video area of ​​the first video frame is filled with the shielding material.

[0021] On the other hand, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:

[0022] The memory is used to store program code and transmit the program code to the processor;

[0023] The processor is used to execute the aforementioned video content shielding method according to the instructions in the program code.

[0024] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the aforementioned video content shielding method.

[0025] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, which implements the aforementioned video content shielding method when executed by a processor.

[0026] It can be seen from the above technical solution that when a user wants to play a certain video, such as the first video, the user can perform a play operation on the first video, so that the terminal device responds to the play operation on the first video and plays the first video. In the process of playing the first video, if the first video frame in the first video includes an object to be shielded, the terminal device can play the first video frame in which the shielding material is filled in the video area to be shielded. On the premise of ensuring the continuous playback of the first video, the video content that the user does not like is filtered out by blocking the shielding material. It can be seen that this solution shields any video area that the user is not interested in by filling the shielding material in the video area to be shielded. While filtering out the video content that the user does not like, it avoids missing key information in the video, ensures the continuity of video viewing, and improves the user's video viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technical members in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0028] Figure 1 A schematic diagram of the system architecture of a video content shielding method provided in an embodiment of the present application;

[0029] Figure 2 A flowchart of a video content shielding method provided in an embodiment of the present application;

[0030] Figure 3 An example diagram of a video playback page for a first video provided in an embodiment of the present application;

[0031] Figure 4 This is an example diagram of the effect of playing the first video frame after filling the shielding material provided in an embodiment of the present application;

[0032] Figure 5 An example diagram of the video playback level and gesture processing level provided in an embodiment of the present application;

[0033] Figure 6An example diagram of a display interface of a guide window provided in an embodiment of the present application;

[0034] Figure 7 An example diagram of a display interface of a close button provided in an embodiment of the present application;

[0035] Figure 8 An example diagram showing a trigger gesture indicator provided in an embodiment of the present application;

[0036] Fig. 9 An example diagram of a first video frame before and after Gaussian filtering provided in an embodiment of the present application;

[0037] Fig.10 A flowchart of a video content shielding method provided in an embodiment of the present application;

[0038] Fig.11 A structural diagram of a video content shielding device provided in an embodiment of the present application;

[0039] Fig.12 A structural diagram of a video content shielding device provided in an embodiment of the present application;

[0040] Fig.13 A structural diagram of a terminal device provided in an embodiment of the present application;

[0041] Fig.14 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0043] Since there is no way to solve the above problems, users have a very poor video viewing experience. They can either tolerate actors or scenes they don't like appearing in the video, or sacrifice video continuity and directly skip the corresponding clips, which may result in missing key information in the video content. No matter which solution users choose, their video viewing experience will be greatly reduced.

[0044] In order to solve the above technical problems, the embodiment of the present application provides a video content shielding method, in which if the first video frame in the first video played includes the object to be shielded, the first video frame in which the shielding material is filled in the area of ​​the video to be shielded is played. In this way, the user sees the first video in which the video content that the user does not want to watch is blocked by the shielding material, thereby filtering out the video content that the user does not like, avoiding missing key information in the video, ensuring the continuity of video viewing, and improving the user's video viewing experience.

[0045] The method provided in the embodiments of the present application can be applied to various video viewing scenarios, such as various video applications (Application, APP) or scenarios of watching videos through a browser.

[0046] See also Figure 1 , Figure 1 A schematic diagram of the system architecture of the video content shielding method provided in the embodiment of the present application. The system architecture includes a terminal device 101 and a server 102. Among them, the server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device 101 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a car terminal, etc., but is not limited to this. The terminal device 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0047] In the scenario of watching videos through a video APP, the terminal device 101 can install the video APP, and the server 102 can provide video services for the terminal device 101. That is, when the user performs a play operation on a certain video, such as a first video, in the video APP, the video APP on the terminal device 101 requests the corresponding video stream from the server 102, and the server 102 provides the corresponding video stream to the video APP so as to play the first video based on the video stream.

[0048] During the playback of the first video, if the first video frame in the first video includes an object to be shielded, the object to be shielded is, for example, Figure 1 For people in the video, the video APP plays the first video frame filled with the shielding material in the video area to be shielded, so as to filter out the video content that users do not want to watch. The video area to be shielded is the video area corresponding to the object to be shielded in the first video frame, for example Figure 1 The area enclosed by the white curve.

[0049] It should be noted that, in the embodiment of the present application, the video content shielding method can be executed by the terminal device or the server alone, or by the terminal device and the server in cooperation. When executed by the terminal device, its implementation method can be that the terminal device responds to the play operation for the first video, and after playing the first video, the terminal device determines that the first video frame in the first video includes the object to be shielded, and then the terminal device obtains the video area to be shielded corresponding to the object to be shielded in the first video frame, and fills the shielding material in the area to be shielded, and then the terminal device plays the first video frame filled with the shielding material in the video area to be shielded.

[0050] When the terminal device and the server cooperate to execute, the implementation method can be that the terminal device responds to the play operation for the first video, and after playing the first video, the server or the terminal device determines that the first video frame in the first video includes the object to be shielded, and then the server obtains the video area to be shielded corresponding to the object to be shielded in the first video frame, and fills the shielding material in the area to be shielded, and then the terminal device plays the first video frame filled with the shielding material in the video area to be shielded. Of course, other cooperative execution methods are also possible, and the embodiments of the present application are not limited to this.

[0051] Next, the video content shielding method provided by the embodiment of the present application will be introduced with reference to the accompanying drawings, taking the terminal device as the execution subject. Figure 2 , the method comprising:

[0052] S201. In response to a play operation on a first video, play the first video.

[0053] In one or more embodiments, taking the scenario of installing a video APP on a terminal device for watching videos as an example, when a user opens the video APP on the terminal device, the user can select a video to watch. If the user confirms to play the first video, the user can perform a play operation on the first video, thereby playing the first video. The page in the process of playing the first video can be called the video play page of the first video. The video play page of the first video can be referred to as the video play page of the first video. Figure 3 shown.

[0054] Among them, the play operation can be a click operation on the first video; in some video apps, for example, you can watch the video by opening the short video app in a short video app, or you can watch a certain video by sliding to the video. In this case, the play operation can be a start operation of the video app or a page sliding operation.

[0055] S202. During the playing of the first video, if a first video frame in the first video includes an object to be shielded, when the first video frame is played, a video area to be shielded of the first video frame is filled with shielding material.

[0056] During the playback of the first video, if the first video frame includes the object to be shielded, the terminal device will play the first video frame with the shielding material filled in the video area to be shielded, which is the video area corresponding to the object to be shielded in the first video frame, while other video areas are played normally. At the same time, the sound of the first video is not affected and is still played normally.

[0057] In the embodiment of the present application, the shielding material is filled in the video area to be shielded when it is determined that the first video frame includes the object to be shielded, and the first video frame includes the object to be shielded when the first video is played or before the first video is played. In other words, determining the object to be shielded and filling the shielding material in the video area to be shielded can be performed in real time during the first video playback, or can be performed in advance when the first video is not played.

[0058] If determining the object to be shielded and filling the shielding material in the video area to be shielded are performed in real time during the playback of the first video, usually, the steps of determining the object to be shielded and filling the shielding material in the video area to be shielded can be performed based on the user's trigger gesture, or the first video being played can be automatically detected to execute the steps of determining the object to be shielded and filling the shielding material in the video area to be shielded.

[0059] In some cases, the steps of determining the object to be shielded and filling the shielding material in the video area to be shielded can also be performed according to the pre-set identification information. Each video frame in the first video has identification information, and the identification information is used to identify whether the video frame includes the object to be shielded. In other words, when the first video is not played, it can be detected whether each video frame in the first video includes the object to be shielded, and identification information can be added thereto. In this way, during the playing of the first video, the steps of determining the object to be shielded and filling the shielding material in the video area to be shielded can be performed according to the identification information.

[0060] If determining the object to be shielded and filling the shielding material in the video area to be shielded is performed in advance when the first video is not played, then before the user triggers the playback of the first video, for example, the user watches the introduction of the first video and finds that it includes actors the user does not like, the user can click a specific button, which is used to trigger the active shielding of the video area mode, and then based on the user settings (for example, the user sets the object to be shielded to be actor A), determine the object to be shielded and fill the shielding material in the video area to be shielded.

[0061] Specifically, the method of determining the object to be shielded and filling the shielding material in the video area to be shielded can be to obtain the first video, and if it is determined that the first video frame of the first video includes the object to be shielded, determine the video area to be shielded. Fill the shielding material in the video area to be shielded, so that in the process of playing the first video, when playing the first video frame, the video area to be shielded of the first video frame is filled with the shielding material. The determination of the object to be shielded and filling the shielding material in the video area to be shielded is performed in real time during the playing of the first video. It will be described in detail later.

[0062] In one or more embodiments, the object to be shielded may be a person (including a face or other body parts), an object (including an entire object or a part of an object), or a scene, etc. For example, if the user does not like a certain actor, the object to be shielded may be the face of the actor; if the user only dislikes the hairstyle, the object to be shielded may be the hair, etc. The video area to be shielded is the area where the object to be shielded is located in the video frame, and is also the video area that the user wants to shield. The video area to be shielded may also be called a content point, and a video may contain one or more content points.

[0063] In one or more embodiments, the shielding material may be various materials that can block the video area to be shielded, such as mosaics, pictures, etc. The pictures may be user-defined (including those stored in the terminal device or currently taken), or they may be system defaults. These pictures may be landscape pictures, or images that the user likes, such as stars or cartoon characters, etc., which are not limited in the embodiments of the present application. In some cases, when filling, when the user actively sets a specified picture, the specified picture is used for filling, otherwise, the video area to be shielded is filled with a default mosaic.

[0064] For example Figure 3 The person in the first video frame shown is not what the user wants to see, so the area where the face is located in the first video frame is determined as the video area to be shielded, and then the video area to be shielded is filled with mosaics. In this way, when the first video frame is played, the video area where the face is located is filled with mosaics. At this time, the effect of playing the first video frame is shown in FIG. Figure 4 As shown, 401 is a filled mosaic.

[0065] It should be noted that the logic of filling the shielded material is completed by the Graphics Processing Unit (GPU). Whether it is a specified image or a default mosaic, it will be transmitted to the GPU as texture data. The GPU will use the texture data as the final output color to fill the shielded video area according to the shielded video area to be filled. In this way, the first video frame seen by the user is the shielded one.

[0066] It can be seen from the above technical solution that when a user wants to play a certain video, such as the first video, the user can perform a play operation on the first video, so that the terminal device responds to the play operation on the first video and plays the first video. In the process of playing the first video, if the first video frame in the first video includes an object to be shielded, the terminal device can play the first video frame in which the shielding material is filled in the video area to be shielded. On the premise of ensuring the continuous playback of the first video, the video content that the user does not like is filtered out by blocking the shielding material. It can be seen that this solution shields any video area that the user is not interested in by filling the shielding material in the video area to be shielded. While filtering out the video content that the user does not like, it avoids missing key information in the video, ensures the continuity of video viewing, and improves the user's video viewing experience.

[0067] It should be noted that, in the embodiment of the present application, whether the first video frame includes the object to be shielded can be determined by the terminal device or by the server, and the embodiment of the present application does not limit this.

[0068] After determining the object to be shielded, the video area corresponding to the object to be shielded in the first video frame, i.e., the video area to be shielded, can be determined so as to fill the shielding material in the video area to be shielded. The steps of determining the video area to be shielded and filling the shielding material in the video area to be shielded can be performed by the terminal device or by the server, and the embodiments of the present application do not limit this.

[0069] If determining the video area to be shielded and the step of filling the shielding material in the video area to be shielded are performed by the terminal device during the playback of the first video, then in one or more possible implementations, the method provided in the embodiment of the present application also includes the terminal device obtaining the video area to be shielded and filling the shielding material in the video area to be shielded.

[0070] In this way, the video area to be shielded can be filled with shielding materials in real time and efficiently, so as to ensure that video content that users do not like is filtered out in real time as much as possible, further improving the user's video viewing experience.

[0071] In one or more embodiments, the video content in the first video may be actively blocked through a trigger gesture of the user, or the first video being played may be automatically detected to predict the video content that the user may wish to block, thereby achieving automatic blocking.

[0072] First, the active shielding of the video content in the first video through the user's trigger gesture is introduced. In this case, when the user is watching the first video, if the video content that the user does not want to watch appears in the first video frame, the user can initiate a trigger gesture for the first video frame on the terminal device, and the trigger gesture usually acts on the video content that the user does not want to watch. Therefore, if the terminal device detects that the user initiates a trigger gesture for the first video frame, it can be determined that the first video frame includes an object to be shielded, and the object (video content) targeted by the trigger gesture is the object to be shielded.

[0073] The trigger gesture may be a pinch gesture, a click gesture, a drag gesture (for example, dragging a finger to draw a closed curve along the edge of a face), etc. Since the click gesture and the drag gesture are commonly used, in order to avoid confusion between the trigger gesture and other gestures as much as possible, in one or more embodiments, the trigger gesture is usually a pinch gesture. Generally, when the user touches the screen of the terminal device with two or more fingers, it is considered that the pinch gesture is initiated.

[0074] It is understandable that the trigger gesture is uniformly completed by a gesture processing layer, that is, on the video playback page, the video playback area is in a layer, namely the video playback layer, and a transparent layer, namely the gesture processing layer, is covered on top of it. This layer is used to handle all user operation events. For example diagrams of the video playback layer and gesture processing layer, please refer to Figure 5 When a trigger gesture such as a click or finger pinch occurs, the gesture processing layer transmits the trigger gesture type and key information such as the position, speed, and strength of the gesture to the video APP, and the video APP processes the video, such as the playback status of the first video, based on this key information.

[0075] In one or more embodiments, when watching the first video through the terminal device, the active video area shielding mode can be turned on by default or turned off by default. If the active video area shielding mode is turned on by default, then after the user initiates the trigger gesture, the above-mentioned video content shielding method is directly executed. If the active video area shielding mode is turned off by default, during the playback of the first video, if the user initiates the trigger gesture for the first time, the playback of the first video is paused, and a guide window (the guide window may also be called a guide mask) is displayed to prompt the user that the active video area shielding mode is about to be entered, and the user is asked whether to continue, for example, the inquiry text "Are you sure you want to turn on the active video area shielding mode" is displayed. The display interface of the guide window can be seen in Figure 6 When the user performs a confirmation operation on the guidance window, such as clicking Figure 6 Click the "Open" button in the guide window to start the active video area shielding mode, otherwise close the guide window and the user can watch the video normally in normal mode.

[0076] By asking the user whether to continue to enter the active video area shielding mode, it is possible to avoid entering the active video area shielding mode due to user's misoperation, avoid shielding of video content that the user does not want to shield, and improve user experience.

[0077] In one or more embodiments, the active shielding video area mode can also be turned off. The active shielding video area mode needs to be turned off manually by the user. The video area corresponding to each shielding material can be triggered. When the user performs a trigger operation on the video area where the shielding material is located, the close button of the active shielding video area mode is displayed in response to the trigger operation. If the user clicks the close button, the active shielding video area mode is turned off, and the shielding material on the first video frame is canceled. If the user does not click the close button within the preset time period, the close button is hidden, and the corresponding shielding material will continue to be displayed. Among them, the trigger operation can be a click operation, a double-click operation, and the like.

[0078] For example, when a user clicks on the video area where the shielded material is located, a close button appears on the shielded material (see Figure 7 If the user clicks on the close button displayed on the shielding material shown in 401, the shielding material is a mosaic. At the same time, the position information and the first characteristic information of the corresponding area to be shielded will be deleted. The area to be shielded will be played normally later. If the user does not click on the close button within a preset time period (for example, 3 seconds), the button will be automatically hidden and the corresponding mosaic will continue to be displayed.

[0079] In one or more embodiments, in the case of actively shielding the video content in the first video based on a trigger gesture, after the user performs a trigger gesture on the terminal device, the terminal device can respond to the trigger gesture and display a trigger gesture indicator, which is used to indicate the action position of the trigger gesture on the first video frame, so that the action position of the trigger gesture can be intuitively displayed, and then the position of the video area to be shielded in the first video frame can be intuitively displayed. After the terminal device detects the trigger gesture through the gesture processing layer, it extracts the edge of the first video frame based on the action position to obtain the video area to be shielded.

[0080] Take the first video frame as Figure 3 As shown in the figure, the trigger gesture is a finger pinch gesture as an example. If the user does not like an actor, the user may want to block the actor's face. Then, when the user performs a finger pinch gesture for the face, the following may be displayed: Figure 8 The trigger gesture indicator shown (e.g. Figure 8The gesture processing layer passes the relevant information of the finger pinch gesture to the video APP, which then extracts the first video frame when the finger pinch gesture occurs, and determines the area pointed to by the finger pinch gesture in the first video frame based on the user's finger pinch area, i.e. the action position indicated by the trigger gesture indicator (including the start position and the end position), and then performs edge extraction on the first video frame to automatically detect the edge of the object to be shielded and extract the edge position. For example Figure 8 As shown, if the user uses a pinch gesture on the face of an actor, edge extraction will be performed based on the first video frame when the user triggers the gesture, edge extraction will be performed at the position of the two fingers, that is, the actor's face area, to determine the video area to be shielded, and the position information of the video area to be shielded will be stored.

[0081] The edge extraction method may be to perform Gaussian filtering on the first video frame, and the first video frame before and after Gaussian filtering is respectively referred to as Fig. 9 As shown in 901 and 902, 901 is the first video frame before Gaussian filtering, and 902 is the first video frame after Gaussian filtering. By performing Gaussian filtering on the first video frame, the edge of the video area to be shielded can be extracted, that is, the specific position of the video area to be shielded in the first video frame can be determined.

[0082] By edge extraction, the position information of the video area to be shielded can be accurately collected from the first video frame, so as to accurately fill the shielding material into the video area to be shielded.

[0083] After the terminal device determines the video area to be shielded through the video APP, it can perform image recognition on the video area to be shielded, identify the object to be shielded corresponding to the video area to be shielded, and store the first characteristic information of the object to be shielded. In the subsequent process of playing the first video, the first video is preloaded and detected. If it is detected that the second video frame in the preloaded video frame has second characteristic information that matches the first characteristic information, that is, it is determined that the second video frame includes the object to be shielded, then the area where the object to be shielded is located in the second video frame is filled with shielding material, and when playing the second video frame, the second video frame filled with shielding material is played. Among them, the second video frame is a video frame in the first video whose playback order is located after the first video frame.

[0084] For example, during the playback of the first video, the user actively blocks the face of an actor. Then, in the subsequent playback of the first video, no matter the actor's face becomes a side profile or the actor changes into other clothes, as long as the second feature information that matches the first feature information can be identified, that is, the video frame is identified as including the actor, the actor's face will be filled with blocking materials such as mosaics, thereby avoiding the problem of users having to actively block multiple times due to changing scenes.

[0085] For example, during the playback of the first video, the user actively blocked actor A (mainly actor A's face) in the first video frame (the first video frame can be used as the first video frame), and actor A did not appear in the subsequent 100 video frames, so these 100 video frames are played normally. Actor A appears again in the 101st video frame (the 101st video frame can be used as the second video frame), and actor A's face is automatically blocked at this time, without the need for manual processing by the user.

[0086] After blocking one content point, the user can continue to block other content points, and different content points will not affect each other.

[0087] By preloading video frames, it is possible to automatically detect whether subsequent video frames include objects to be shielded, and then automatically fill the area corresponding to the objects to be shielded with shielding materials, avoiding users from actively shielding the same scene multiple times, thereby improving shielding efficiency and user experience.

[0088] It should be noted that when storing the first characteristic information of the shielded object, the process of storing the first characteristic information of the shielded object is different depending on the object to be shielded. If image recognition is performed on the shielded video area, it is identified whether the shielded object corresponding to the shielded video area is a face. If so, the key information of the face is extracted. These key information include visual features, pixel statistical features, face image transformation coefficient features, face image algebraic features, etc. These key information can be used as the first characteristic information. After the first characteristic information is extracted, the first characteristic information is sent to the server for face information confirmation. The server returns the name of the person after matching, and then stores the first characteristic information in the running memory of the video APP.

[0089] If the object to be blocked is not a face, the object recognition logic is entered. After object recognition, the extracted data will be passed to the server, and the server will confirm the object information according to the outline based on the extracted data, thereby identifying the specific object. After successful recognition, the object name and basic information (i.e., the first feature information) are returned to the video APP, and the video APP stores the first feature information in the running memory. If the recognition fails, no additional information will be extracted.

[0090] When storing the above-mentioned first characteristic information, it can be stored in the format of Key-Value, where the format of Key is video ID+ObjectID, video ID is the video identifier (identifier, ID) of the first video, and ObjectID is the identifier of the object to be shielded. For example: if the video ID of the first video that the user is watching is: 78arjvs90dgaed), and the object to be shielded that the user wants to shield is the face of actor A (ObjectID is: yy-67887), then when storing the first characteristic information, the Key is 78arjvs90dgaed_yy-67887, and the Value is the first characteristic information of the actor A, such as facial information data. When the object to be shielded is an object, the storage of the first characteristic information is similar to the above method, which will not be repeated here.

[0091] It should be noted that the number of preloaded video frames is determined according to the preload rate, and the preload rate is dynamically adjusted according to at least one of the model of the terminal device, the memory space of the terminal device when playing the first video, and the storage space. The preload rate may refer to the ratio of the number of preloaded video frames to the total number of video frames in the first video.

[0092] For example, the preloading rate of high-end terminal devices is higher than that of ordinary terminal devices. Generally, the preloading rate can be divided into three categories: high, medium and low according to the model. In addition, the more memory space or storage space the terminal device has, the higher the preloading rate. The preloading rate can be divided into three categories: A, B and C according to the memory space and storage space of the terminal device. When the video APP is running, the preloading rate is dynamically adjusted according to the actual situation.

[0093] In some cases, the preloading rate can be represented by the preloading time, and the preloading time does not exceed a certain threshold, which can be, for example, 1 minute. By limiting the preloading time within a certain threshold, waste of memory resources can be avoided.

[0094] In one or more embodiments, the present application can also implement a cloud shielding function. When the shielding material is a mosaic, it can be called a cloud mosaic function. When the user actively shields the video content, the relevant information of the shielded video content can be collected as historical shielding information. After the historical shielding information is collected, the historical shielding information is uploaded to the server for storage. In this way, when playing the first video, the terminal device can receive the historical shielding information of the first video sent by the server. The historical shielding information includes time information and position information. The time information indicates the target moment when the object to be shielded appears in the first video, and the position information indicates the position of the object to be shielded in the video frame at the target moment. In the process of playing the first video, the first video can be shielded according to the historical shielding information. Specifically, if it is determined that the first video is played to the target moment according to the time information, it can be determined that the first video frame corresponding to the target moment includes the object to be shielded, and then the video area to be shielded is determined according to the position information corresponding to the target moment, so as to fill the shielding material in the video area to be shielded to shield it.

[0095] Through this cloud shielding method, user preferences are inferred based on historical shielding information, so that the first video watched by the user can be directly shielded based on the historical shielding information, eliminating the need for users to actively shield, thereby reducing user operations.

[0096] In some cases, in order to improve the accuracy of inferring user preferences based on historical blocking information, when the same historical blocking information uploaded for a certain video, such as the first video, reaches a set threshold (such as 40% of the video playback volume), it is considered that the historical blocking information reflects the preferences of most users, and the preferences of most users are more representative of the preferences of this user, thereby reducing the randomness or uniqueness of the historical blocking information.

[0097] After the terminal device receives the historical shielding information of the first video sent by the server, a shielding prompt box may be displayed, which is used to ask the user whether to adopt the historical shielding information of most users. If the user performs a confirmation operation on the shielding prompt box, it means that the user adopts the historical shielding information of most users. The terminal device can respond to the user's confirmation operation on the shielding prompt box and play the first video frame filled with shielding materials in the video area to be shielded. If the user does not adopt the historical shielding information of most users, the first video is directly played normally.

[0098] By asking the user whether to adopt the historical blocking information of most users in a blocking prompt box, it is possible to decide whether to adopt the cloud blocking function based on the user's actual needs, thereby avoiding blocking the first video based on the historical blocking information when the user does not want to adopt the historical blocking information of most users, thereby improving the user experience.

[0099] In some cases, the purpose of the cloud shielding function is to rely on the preferences of most users and infer the preferences of all people. Some preferences are common, while some preferences are particularly subjective, which leads to different applicability of different objects to be shielded to the cloud shielding function. For example, when the objects to be shielded are some bloody, violent, thrilling, and inappropriate scenes for children, these scenes are basically disliked by most users and have commonalities. For another example, when the object to be shielded is a person such as an actor, whether the user likes the appearance of a certain actor is particularly subjective. Therefore, in one or more embodiments, the above-mentioned cloud shielding function is more suitable for automatically shielding some bloody, violent, thrilling, and inappropriate scenes for children. Therefore, after collecting the historical shielding information, the historical shielding information can be confirmed. When it is confirmed that it is not the historical shielding information of a face, the historical shielding information can be sent to the server for storage.

[0100] The cloud shielding function can judge the video content based on the preferences of most users, ensuring that users will not abruptly see bloody, violent, thrilling, and inappropriate scenes for children even when they do not actively shield certain scenes, thereby improving the user experience.

[0101] In one or more embodiments, actively shielding the video area to be shielded corresponding to the shielded object has a certain effective period, which varies according to the different shielded objects. If the shielded object is an object with fixed feature information, when the first video is switched to the second video for playback, if the second video includes the shielded object, the shielded object is shielded during the playback of the second video. For example, the appearance of a person basically does not change, so a person can be considered as an object with fixed feature information.

[0102] If a user actively blocks a person while watching the first video, the person will be blocked during the operation of the video app, even if the user switches from the first video to the second video, until the user manually turns off the active video area blocking mode or exits the video app. For example, if a user blocks actor a in video A (the first video), if actor a appears in video B (the second video), actor a will also be blocked.

[0103] If the object to be shielded is an object with unfixed characteristic information, after exiting the playback of the first video, if the first video is replayed, the object to be shielded will be shielded during the playback of the first video. Alternatively, when the first video is switched to the second video for playback, if the second video includes the object to be shielded, the shielding of the object to be shielded will be invalid during the playback of the second video. For example, bloodstains can be considered as objects with unfixed characteristic information because the shape of bloodstains may vary greatly.

[0104] If the user actively blocks a scene, such as a pool of blood, while watching the first video, the scene will be blocked during the playback of the first video. If the user exits the first video and enters the first video again, the blocking function of the scene will still be valid. If the user enters other videos, such as the second video, the blocking function of the scene will be invalid. For example, if the user actively blocks a pool of blood in a video (the first video), then in other videos (the second video), even if there is a similar blood scene, it will not be blocked.

[0105] Next, the first video that is automatically played is detected to predict the video content that the user may want to block, and automatic blocking is introduced.

[0106] Before the user watches the first video this time, the user or other users may have watched the first video and posted comments. These comments largely reflect the user's preferences for the video content in the first video. Therefore, in the process of playing the first video, the comment object and the emotion type for the comment object can be extracted according to the comment information of the first video. If the emotion type is a preset type and the comment object exists in the first video frame, it is determined that the first video frame includes the object to be shielded, and the object to be shielded is the comment object.

[0107] For example, the comment information includes "Actor A is so ugly", and the comment object in the comment information is "Actor A", and the determined emotion type is disliking actor A (that is, the preset type). Therefore, if actor A exists in the first video frame, it is determined that the first video frame includes the object to be shielded, and it is necessary to fill the shielding material in the video area to be shielded corresponding to actor A, such as the face of actor A, to shield actor A.

[0108] The following will introduce the video content shielding method provided by the embodiment of the present application in combination with actual application scenarios. Taking the case where the object to be shielded includes a person or an object, a video APP is installed on the terminal device. When the user opens the video APP, if the user performs a play operation on the first video, the video APP enters the video play page of the first video to play the first video. During the playback of the first video, in order to prevent the user from watching video content that he does not like and to ensure the continuity of watching the video, the embodiment of the present application provides a video content shielding method. See Fig.10 , taking the terminal device as the execution subject as an example, a video content shielding method is introduced, and the method includes:

[0109] S1001. In response to a play operation on a first video, a terminal device enters a video play page of the first video.

[0110] S1002. The terminal device plays the first video on the video playback page.

[0111] S1003. During the playback of the first video, the terminal device triggers active shielding by initiating a trigger gesture for the first video frame.

[0112] S1004: The terminal device performs edge detection based on the trigger gesture to obtain a video area to be shielded.

[0113] S1005. The terminal device determines whether the object to be shielded corresponding to the video area to be shielded is a person. If so, execute S1006; if not, execute S1008.

[0114] S1006. The terminal device performs face recognition and extracts first feature information.

[0115] S1007. The terminal device confirms the facial information.

[0116] S1008. The terminal device performs object recognition and extracts first feature information.

[0117] S1009. The terminal device determines whether the recognition is successful. If so, execute S1010; if not, execute S1002.

[0118] S1010. The terminal device confirms the object information.

[0119] S1011. The terminal device stores the first characteristic information.

[0120] S1012: The terminal device fills mosaics in the video area to be shielded in the first video frame.

[0121] S1013: The terminal device plays the first video frame filled with mosaics.

[0122] S1014. The terminal device preloads video frames.

[0123] S1015. The terminal device determines whether there is a second video frame including the object to be shielded in the preloaded video frame. If so, execute S1016; if not, execute S1018.

[0124] S1016: The terminal device fills the area where the object to be shielded is located in the second video frame with mosaics.

[0125] S1017: The terminal device plays the second video frame filled with mosaics.

[0126] S1018. The terminal device plays the second video frame.

[0127] Based on the video content shielding method provided in the above embodiment, the present application embodiment further provides a video content shielding device 1100. Fig.11 , the device 1100 includes a playback unit 1101 and a display unit 1102:

[0128] The playing unit 1101 is configured to play the first video in response to a playing operation on the first video;

[0129] The display unit 1102 is used to, during the process of playing the first video, if the first video frame in the first video includes an object to be shielded, then when the first video frame is played, the video area to be shielded of the first video frame is filled with shielding material, and the video area to be shielded is the area corresponding to the object to be shielded in the first video frame.

[0130] In a possible implementation manner, the device further includes a determining unit:

[0131] The determination unit is used to determine that the first video frame in the first video includes the object to be shielded. The determination unit determines that the first video frame in the first video includes the object to be shielded in the following manner: if the user initiates a trigger gesture for the first video frame, it is determined that the first video frame includes the object to be shielded, and the object targeted by the trigger gesture is the object to be shielded.

[0132] In a possible implementation, the device further includes an acquisition unit and a filling unit:

[0133] The acquisition unit is used to acquire the video area to be shielded;

[0134] The filling unit is used to fill the masking material in the video area to be masked.

[0135] In one possible implementation, if it is determined that the first video frame includes an object to be shielded based on a trigger gesture initiated by the user on the first video frame, the acquisition unit is used to display a trigger gesture indicator in response to the trigger gesture, wherein the trigger gesture indicator is used to indicate the action position of the trigger gesture on the first video frame; and edge extraction is performed on the first video frame based on the action position to obtain the video area to be shielded.

[0136] In a possible implementation, the device further includes a pause unit and a start unit:

[0137] The pause unit is configured to pause the first video if the user initiates a trigger gesture for the first time during the playback of the first video;

[0138] The display unit 1102 is also used to display a guide window;

[0139] The activation unit is used to activate the active shielding video area mode in response to the user's confirmation operation on the guide window.

[0140] In a possible implementation, the device further includes an identification unit and a preloading unit:

[0141] The recognition unit is used to perform image recognition on the video area to be shielded, identify the object to be shielded corresponding to the video area to be shielded, and store the first feature information of the object to be shielded;

[0142] The preloading unit is used to perform preloading detection on the first video during the playing of the first video;

[0143] The determining unit is further configured to determine that the second video frame includes the object to be shielded if second feature information matching the first feature information is detected in the second video frame, and the second video frame is a video frame in the first video whose playback order is after the first video frame;

[0144] The filling unit is further used to fill the area where the object to be shielded is located in the second video frame with shielding material;

[0145] The display unit 1102 is further configured to fill the second video frame with shielding material when playing the second video frame.

[0146] In a possible implementation, the number of preloaded video frames is determined based on a preloading rate, and the preloading rate is dynamically adjusted based on at least one of a model of the terminal device, a memory space, and a storage space of the terminal device when playing the first video.

[0147] In a possible implementation manner, the device further includes a determining unit:

[0148] The determining unit is used to determine that a first video frame in the first video includes an object to be shielded, and the determining unit determines that the first video frame in the first video includes the object to be shielded in the following manner: receiving historical shielding information of the first video sent by a server, the historical shielding information including time information and position information, the time information indicating a target moment when the object to be shielded appears in the first video, and the position information indicating a position of the object to be shielded in the video frame at the target moment; if it is determined according to the time information that the first video is played to the target moment, determining that the first video frame corresponding to the target moment includes the object to be shielded;

[0149] If the device further includes an acquisition unit, the acquisition unit is used to determine the video area to be shielded according to the position information corresponding to the target time.

[0150] In a possible implementation, the display unit 1102 is further used to display a shielding prompt box;

[0151] The playback unit 1101 is specifically used for:

[0152] In response to the user's confirmation operation on the shielding prompt box, when the first video frame is played, the video area to be shielded of the first video frame is filled with shielding material.

[0153] In a possible implementation manner, the shielding material is a mosaic or a picture.

[0154] In a possible implementation, the display unit 1102 is further configured to display a closing button of the active shielding video area mode in response to a trigger operation performed on the video area where the shielding material is located;

[0155] The device also includes a closing unit and a canceling unit:

[0156] The closing unit is configured to close the active video area shielding mode if a click operation of the user on the close button is obtained;

[0157] The canceling unit is used to cancel the shielding material on the first video frame.

[0158] In a possible implementation, the device further includes a hiding unit:

[0159] The hiding unit is used to hide the close button if no click operation of the user on the close button is obtained within a preset time period.

[0160] In a possible implementation manner, the device further includes a shielding unit:

[0161] The shielding unit is configured to, if the object to be shielded is an object with fixed characteristic information, shield the object to be shielded during the playback of the second video when the first video is switched to the second video for playback, if the second video includes the object to be shielded;

[0162] The shielding unit is also used for, if the object to be shielded is an object whose characteristic information is not fixed, after exiting the playback of the first video, if the first video is played again, shielding the object to be shielded during the playback of the first video; or, when the first video is switched to a second video for playback, if the second video includes the object to be shielded, shielding of the object to be shielded during the playback of the second video becomes invalid.

[0163] In a possible implementation manner, the device further includes a determining unit:

[0164] The determination unit is used to determine that the first video frame in the first video includes the object to be shielded, and the determination unit determines that the first video frame in the first video includes the object to be shielded in the following manner: extracting the comment object and the emotion type for the comment object based on the comment information of the first video; if the emotion type is a preset type and the comment object exists in the first video frame, determining that the first video frame includes the object to be shielded, and the object to be shielded is the comment object.

[0165] It can be seen from the above technical solution that when a user wants to play a certain video, such as the first video, the user can perform a play operation on the first video, so that the play unit 1101 of the terminal device responds to the play operation on the first video and plays the first video. In the process of playing the first video, if the first video frame in the first video includes an object to be shielded, when the play unit 1101 plays the first video frame, the first video frame displayed by the display unit 1102 is filled with shielding material. On the premise of ensuring the continuous playback of the first video, the video content that the user does not like is filtered out by blocking the shielding material. It can be seen that this solution shields any video area that the user is not interested in by filling the shielded video area with shielding material. While filtering out the video content that the user does not like, it avoids missing key information in the video, ensures the continuity of video viewing, and improves the user's video viewing experience.

[0166] The embodiment of the present application also provides a video content shielding device 1200. Fig.12 , the device 1200 includes an acquiring unit 1201, a determining unit 1202 and a filling unit 1203:

[0167] The acquisition unit 1201 is used to acquire a first video;

[0168] The determining unit 1202 is configured to determine a video region to be shielded if it is determined that the first video frame of the first video includes the object to be shielded, wherein the video region to be shielded is a region corresponding to the object to be shielded in the first video frame;

[0169] The filling unit 1203 is used to fill the to-be-shielded video area with shielding material, so that during the process of playing the first video, when playing the first video frame, the to-be-shielded video area of ​​the first video frame is filled with the shielding material.

[0170] Based on the above embodiments, the embodiments of the present application further provide a computer device, which may be a terminal device. For example, the terminal device is a smart phone:

[0171] Fig.13 The block diagram shows a partial structure of a smart phone provided in an embodiment of the present application. Fig.13 The smartphone includes: a radio frequency (RF) circuit 1310, a memory 1320, an input unit 1330, a display unit 1340, a sensor 1350, an audio circuit 1360, a wireless fidelity (WiFi) module 1370, a processor 1380, and a power supply 1390. The input unit 1330 may include a touch panel 1331 and other input devices 1332, the display unit 1340 may include a display panel 1341, and the audio circuit 1360 may include a speaker 1361 and a microphone 1362. Those skilled in the art will appreciate that Fig.13 The structure of the smartphone shown in the figure does not constitute a limitation of the smartphone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0172] The memory 1320 can be used to store software programs and modules. The processor 1380 executes various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1320. The memory 1320 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 smartphone (such as audio data, a phone book, etc.), etc. In addition, the memory 1320 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.

[0173] The processor 1380 is the control center of the smartphone, which uses various interfaces and lines to connect various parts of the entire smartphone, and executes various functions of the smartphone and processes data by running or executing software programs and / or modules stored in the memory 1320, and calling data stored in the memory 1320. Optionally, the processor 1380 may include one or more processing units; preferably, the processor 1380 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 1380.

[0174] In this embodiment, the processor 1380 in the smartphone may perform the following steps:

[0175] In response to a play operation on a first video, play the first video;

[0176] During the process of playing the first video, if the first video frame in the first video includes an object to be shielded, then when playing the first video frame, the video area to be shielded of the first video frame is filled with shielding material, and the video area to be shielded is the area corresponding to the object to be shielded in the first video frame.

[0177] or,

[0178] Get the first video;

[0179] If it is determined that the first video frame of the first video includes the object to be shielded, determining a video area to be shielded, where the video area to be shielded is an area corresponding to the object to be shielded in the first video frame;

[0180] The to-be-shielded video area is filled with shielding material, so that during the process of playing the first video, when playing the first video frame, the to-be-shielded video area of ​​the first video frame is filled with the shielding material.

[0181] The computer device provided in the embodiment of the present application may also be a server. Fig.14 As shown, Fig.14 The structural diagram of the server 1400 provided in the embodiment of the present application, the server 1400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 1422 (for example, one or more processors) and a memory 1432, and one or more storage media 1430 (for example, one or more mass storage devices) storing application programs 1442 or data 1444. Among them, the memory 1432 and the storage medium 1430 can be short-term storage or permanent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1422 can be configured to communicate with the storage medium 1430 and execute a series of instruction operations in the storage medium 1430 on the server 1400.

[0182] The server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1458, and / or one or more operating systems 1441, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0183] In this embodiment, the steps performed by the server may be based on Fig.14 The server structure shown is implemented. For example, in the above-mentioned embodiment, the server obtains the video area to be shielded corresponding to the object to be shielded in the first video frame, and fills the shielding material in the area to be shielded.

[0184] According to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program codes, and the program codes are used to execute the video content shielding methods described in the above-mentioned embodiments.

[0185] 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 includes computer instructions, the computer instructions are 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 embodiments.

[0186] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0187] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, 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, such as 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

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

[0189] In addition, each functional unit in each embodiment of the present application 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.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program code.

[0191] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technical members in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A video content shielding method, characterized in that: The method comprises: In response to a play operation on a first video, play the first video; During the process of playing the first video, if the first video frame in the first video includes an object to be shielded, then when playing the first video frame, the video area to be shielded of the first video frame is filled with shielding material, and the video area to be shielded is the area corresponding to the object to be shielded in the first video frame, and the shielding material is filled in as follows: a graphics processor receives texture data, and fills the texture data into the video area to be shielded as the final output color according to the video area to be shielded that needs to be filled, and the shielding material is various materials that block the video area to be shielded, wherein, it is determined that the first video frame in the first video includes the object to be shielded, and the first video frame in the first video includes the object to be shielded is determined in the following manner: if the user initiates a trigger gesture for the first video frame, it is determined that the first video frame includes the object to be shielded, and the object targeted by the trigger gesture is the object to be shielded; Perform image recognition on the video area to be shielded, identify the object to be shielded corresponding to the video area to be shielded, and store the first feature information of the object to be shielded, wherein the storage method of the first feature information of the object to be shielded includes: identifying the video area to be shielded; if the object to be shielded corresponding to the video area to be shielded is a face, extracting key information of the face, and saving the key information as the first feature information, wherein the key information includes visual features, pixel statistical features, face image transformation coefficient features and face image algebraic features; if the object to be shielded corresponding to the video area to be shielded is not a face, enter the object recognition logic, confirm the object information according to the contour based on the extracted data to identify the object, and save the first feature information, wherein the first feature information includes the object name and basic information; During the playing of the first video, performing a preloading detection on the first video; If it is detected that the second video frame contains second feature information matching the first feature information, it is determined that the second video frame includes the object to be shielded, and the second video frame is a video frame in the first video that is played after the first video frame in order; Filling the area where the object to be shielded is located in the second video frame with shielding material; When playing the second video frame, the second video frame is filled with shielding material; Among them, on the video playback page, the video playback area is on the video playback layer, and a transparent gesture processing layer is covered on the upper layer of the video playback area. The gesture processing layer is used to process all user operation events.

2. The method according to claim 1, characterized in that When playing the first video frame, before the to-be-shielded video area of ​​the first video frame is filled with shielding material, the method further includes: Obtain the video area to be shielded; The masking material is filled in the video area to be masked.

3. The method according to claim 2, characterized in that If it is determined that the first video frame includes an object to be shielded based on the user initiating a trigger gesture for the first video frame, the acquiring the video area to be shielded includes: In response to the trigger gesture, display a trigger gesture indicator, where the trigger gesture indicator is used to indicate an action position of the trigger gesture on the first video frame; The first video frame is subjected to edge extraction based on the action position to obtain the video area to be shielded.

4. The method according to claim 1, characterized in that: The method further comprises: During the playing of the first video, if the user initiates the trigger gesture for the first time, the playing of the first video is paused and a guide window is displayed; In response to the user's confirmation operation on the guide window, an active video area shielding mode is started.

5. The method according to claim 1, characterized in that The number of preloaded video frames is determined based on a preloading rate, and the preloading rate is dynamically adjusted based on at least one of a model of a terminal device, a memory space, and a storage space of the terminal device when playing the first video.

6. The method according to claim 1, characterized in that The method further includes: determining that a first video frame in the first video includes an object to be shielded, wherein determining that the first video frame in the first video includes an object to be shielded is performed in the following manner: Receive historical masking information of the first video sent by a server, the historical masking information including time information and position information, the time information indicating a target time at which a to-be-masked object appears in the first video, and the position information indicating a position of the to-be-masked object in a video frame at the target time; If it is determined according to the time information that the first video is played to the target time, it is determined that the first video frame corresponding to the target time includes the object to be shielded; If the method further includes obtaining the video area to be shielded, the obtaining the video area to be shielded includes: The video area to be shielded is determined according to the position information corresponding to the target moment.

7. The method according to claim 6, characterized in that After receiving the historical shielding information of the first video sent by the server, the method further includes: Display the blocking prompt box; When playing the first video frame, the to-be-shielded video area of ​​the first video frame is filled with shielding material, including: In response to the user's confirmation operation on the shielding prompt box, when the first video frame is played, the video area to be shielded of the first video frame is filled with shielding material.

8. The method according to any one of claims 1 to 7, characterized in that: The shielding material is a mosaic or a picture.

9. The method according to any one of claims 1 to 5, characterized in that: When playing the first video frame, after the to-be-shielded video area of ​​the first video frame is filled with shielding material, the method further includes: In response to a trigger operation performed on the video area where the shielded material is located, displaying a close button for the active shielding video area mode; If a click operation of the user on the close button is obtained, the active shielding video area mode is closed, and the shielding material on the first video frame is cancelled.

10. The method according to claim 9, characterized in that The method further comprises: If no click operation of the user on the close button is obtained within a preset time period, the close button is hidden.

11. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the object to be shielded is an object with fixed characteristic information, when the first video is switched to the second video for playback, if the second video includes the object to be shielded, shield the object to be shielded during the playback of the second video; If the object to be shielded is an object whose characteristic information is not fixed, after exiting the playback of the first video, if the first video is played again, the object to be shielded will be shielded during the playback of the first video; or, when the first video is switched to a second video for playback, if the second video includes the object to be shielded, shielding of the object to be shielded will fail during the playback of the second video.

12. The method according to claim 1, characterized in that The method further includes: determining that a first video frame in the first video includes an object to be shielded, wherein determining that the first video frame in the first video includes an object to be shielded is performed in the following manner: Extracting a comment object and a sentiment type for the comment object according to the comment information of the first video; If the emotion type is a preset type and the comment object exists in the first video frame, it is determined that the first video frame includes an object to be shielded, and the object to be shielded is the comment object.

13. A video content shielding method, characterized in that: The method comprises: Get the first video; If it is determined that the first video frame of the first video includes the object to be shielded, determining a video area to be shielded, where the video area to be shielded is an area corresponding to the object to be shielded in the first video frame; The shielding material is filled in the video area to be shielded, so that in the process of playing the first video, when playing the first video frame, the video area to be shielded of the first video frame is filled with the shielding material, and the shielding material is filled in as follows: the graphics processor receives texture data, and fills the texture data into the video area to be shielded as the final output color according to the video area to be shielded that needs to be filled, and the shielding material is various materials that block the video area to be shielded, wherein it is determined that the first video frame in the first video includes the object to be shielded, and the first video frame in the first video includes the object to be shielded is determined in the following manner: if the user initiates a trigger gesture for the first video frame, it is determined that the first video frame includes the object to be shielded, and the object targeted by the trigger gesture is the object to be shielded; Perform image recognition on the video area to be shielded, identify the object to be shielded corresponding to the video area to be shielded, and store the first feature information of the object to be shielded, wherein the storage method of the first feature information of the object to be shielded includes: identifying the video area to be shielded; if the object to be shielded corresponding to the video area to be shielded is a face, extracting key information of the face, and saving the key information as the first feature information, wherein the key information includes visual features, pixel statistical features, face image transformation coefficient features and face image algebraic features; if the object to be shielded corresponding to the video area to be shielded is not a face, enter the object recognition logic, confirm the object information according to the contour based on the extracted data to identify the object, and save the first feature information, wherein the first feature information includes the object name and basic information; Performing a preload detection on the first video; If it is detected that the second video frame contains second feature information matching the first feature information, it is determined that the second video frame includes the object to be shielded, and the second video frame is a video frame in the first video that is played after the first video frame in order; Filling the area where the object to be shielded is located in the second video frame with shielding material, so that when the second video frame is played, the second video frame is filled with the shielding material; Among them, on the video playback page, the video playback area is on the video playback layer, and a transparent gesture processing layer is covered on the upper layer of the video playback area. The gesture processing layer is used to process all user operation events.

14. A video content shielding device, characterized in that: The device includes a playing unit, a determining unit, an identifying unit, a filling unit, a preloading unit and a display unit: The playing unit is configured to play the first video in response to a playing operation on the first video; The display unit is used for, during the process of playing the first video, if the first video frame in the first video includes the object to be shielded, then when playing the first video frame, the video area to be shielded of the first video frame is filled with shielding material, the video area to be shielded is the area corresponding to the object to be shielded in the first video frame, and the shielding material is filled in the following manner: the graphics processor receives texture data, and fills the texture data into the video area to be shielded as the final output color according to the video area to be shielded that needs to be filled, and the shielding material is various materials that block the video area to be shielded; The determining unit is used to determine that the first video frame in the first video includes the object to be shielded, and the first video frame in the first video includes the object to be shielded in the following manner: if the user initiates a trigger gesture for the first video frame, it is determined that the first video frame includes the object to be shielded, and the object targeted by the trigger gesture is the object to be shielded; The identification unit is used to perform image recognition on the video area to be shielded, identify the object to be shielded corresponding to the video area to be shielded, and store the first feature information of the object to be shielded, wherein the storage method of the first feature information of the object to be shielded includes: identifying the video area to be shielded; if the object to be shielded corresponding to the video area to be shielded is a face, extracting key information of the face, and saving the key information as the first feature information, wherein the key information includes visual features, pixel statistical features, face image transformation coefficient features and face image algebraic features; if the object to be shielded corresponding to the video area to be shielded is not a face, entering the object recognition logic, confirming the object information according to the contour based on the extracted data to identify the object, and saving the first feature information, wherein the first feature information includes the object name and basic information; The preloading unit is used to perform preloading detection on the first video during the playing of the first video; The determining unit is further configured to determine that the second video frame includes the object to be shielded if second feature information matching the first feature information is detected in the second video frame, and the second video frame is a video frame in the first video whose playback order is after the first video frame; The filling unit is further used to fill the area where the object to be shielded is located in the second video frame with shielding material; The display unit is used to fill the second video frame with the shielding material when playing the second video frame; Among them, on the video playback page, the video playback area is on the video playback layer, and a transparent gesture processing layer is covered on the upper layer of the video playback area. The gesture processing layer is used to process all user operation events.

15. The device according to claim 14, characterized in that The device also includes: An acquisition unit, used for acquiring the video area to be shielded; A filling unit is used to fill the masking material in the video area to be masked.

16. The device according to claim 15, characterized in that If it is determined that the first video frame includes an object to be shielded based on a trigger gesture initiated by the user on the first video frame, the acquisition unit is used to display a trigger gesture indicator in response to the trigger gesture, where the trigger gesture indicator is used to indicate the action position of the trigger gesture on the first video frame; and edge extraction is performed on the first video frame based on the action position to obtain the video area to be shielded.

17. The device according to claim 14, characterized in that The device also includes a pause unit and a start unit; The pause unit is configured to pause the first video if the user initiates a trigger gesture for the first time during the playback of the first video; The display unit is also used to display the guide window; The activation unit is used to activate the active shielding video area mode in response to the user's confirmation operation on the guide window.

18. The device according to claim 14, characterized in that The number of preloaded video frames is determined based on a preloading rate, and the preloading rate is dynamically adjusted based on at least one of a model of a terminal device, a memory space, and a storage space of the terminal device when playing the first video.

19. The device according to claim 14, characterized in that The device also includes a determination unit and an acquisition unit; The determining unit is used to determine that the first video frame in the first video includes the object to be shielded, and determines that the first video frame in the first video includes the object to be shielded in the following manner: receiving historical shielding information of the first video sent by a server, the historical shielding information including time information and position information, the time information indicating a target time when the object to be shielded appears in the first video, and the position information indicating a position of the object to be shielded in the video frame at the target time; if it is determined according to the time information that the first video is played to the target time, determining that the first video frame corresponding to the target time includes the object to be shielded; The acquisition unit is used to determine the video area to be shielded according to the position information corresponding to the target moment.

20. The device according to claim 19, characterized in that The display unit is also used to display a shielding prompt box; The playback unit is specifically configured to respond to a user's confirmation operation on the shielding prompt box, and when playing the first video frame, the video area to be shielded of the first video frame is filled with shielding material.

21. The device according to any one of claims 14 to 20, characterized in that The shielding material is a mosaic or a picture.

22. The device according to any one of claims 14 to 18, characterized in that The display unit is further used to display a closing button of the active shielding video area mode in response to a trigger operation performed on the video area where the shielding material is located; The device also includes a closing unit and a canceling unit; The closing unit is used to obtain the user's click operation on the closing button and close the active shielding video area mode; The canceling unit is used to cancel the shielding material on the first video frame.

23. The device according to claim 22, characterized in that The device also includes a hiding unit; The hiding unit is used to hide the close button if no click operation of the user on the close button is obtained within a preset time period.

24. The device according to any one of claims 14 to 18, characterized in that The device also includes a shielding unit; The shielding unit is configured to, if the object to be shielded is an object with fixed characteristic information, shield the object to be shielded during the playback of the second video when the first video is switched to the second video for playback, if the second video includes the object to be shielded; The shielding unit is also used for, if the object to be shielded is an object whose characteristic information is not fixed, after exiting the playback of the first video, if the first video is played again, shielding the object to be shielded during the playback of the first video; or, when the first video is switched to a second video for playback, if the second video includes the object to be shielded, shielding of the object to be shielded during the playback of the second video becomes invalid.

25. The device according to claim 14, characterized in that The device also includes a determining unit; The determination unit is used to determine that the first video frame in the first video includes the object to be shielded, and determines that the first video frame in the first video includes the object to be shielded in the following manner: extracting the comment object and the emotion type for the comment object based on the comment information of the first video; if the emotion type is a preset type and the comment object exists in the first video frame, determine that the first video frame includes the object to be shielded, and the object to be shielded is the comment object.

26. A video content shielding device, characterized in that: The device comprises an acquisition unit, a determination unit and a filling unit: The acquisition unit is used to acquire the first video; The determining unit is configured to determine a video region to be shielded if it is determined that the first video frame of the first video includes the object to be shielded, wherein the video region to be shielded is a region corresponding to the object to be shielded in the first video frame; The filling unit is used to fill the to-be-shielded video area with shielding material, so that in the process of playing the first video, when playing the first video frame, the to-be-shielded video area of ​​the first video frame is filled with the shielding material, and the method of filling the shielding material is: the graphics processor receives texture data, and fills the texture data into the to-be-shielded video area as the final output color according to the to-be-shielded video area to be filled, and the shielding material is various materials that block the to-be-shielded video area, wherein it is determined that the first video frame in the first video includes the to-be-shielded object, and the first video frame in the first video includes the to-be-shielded object is determined in the following manner: if the user initiates a trigger gesture for the first video frame, it is determined that the first video frame includes the to-be-shielded object, and the object targeted by the trigger gesture is the to-be-shielded object; The determination unit is further used to perform image recognition on the video area to be shielded, identify the object to be shielded corresponding to the video area to be shielded, and store the first feature information of the object to be shielded, wherein the storage method of the first feature information of the object to be shielded includes: identifying the video area to be shielded; if the object to be shielded corresponding to the video area to be shielded is a face, extracting key information of the face, and saving the key information as the first feature information, wherein the key information includes visual features, pixel statistical features, face image transformation coefficient features and face image algebraic features; if the object to be shielded corresponding to the video area to be shielded is not a face, entering the object recognition logic, confirming the object information according to the contour based on the extracted data to identify the object, and saving the first feature information, wherein the first feature information includes the object name and basic information; performing pre-loading detection on the first video; if it is detected that there is second feature information matching the first feature information in the second video frame, determining that the second video frame includes the object to be shielded, and the second video frame is a video frame in the first video whose playback order is after the first video frame; The filling unit is further used to fill the area where the to-be-shielded object is located in the second video frame with shielding material, so that when the second video frame is played, the second video frame is filled with the shielding material; Among them, on the video playback page, the video playback area is on the video playback layer, and a transparent gesture processing layer is covered on the upper layer of the video playback area. The gesture processing layer is used to process all user operation events.

27. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 13 according to the instructions in the program code.

28. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the method according to any one of claims 1 to 13.

29. A computer program product comprising 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 13 is implemented.