Video processing method and device

文档序号:1342054 发布日期:2020-07-17 浏览:6次 中文

阅读说明:本技术 视频的处理方法和装置 (Video processing method and device ) 是由 林成龙 于 2019-01-10 设计创作,主要内容包括:本发明提供一种视频的处理方法和装置。该方法包括:获取待播放视频,判断当前视频观看者中是否存在预设对象。若所述当前视频观看者中存在所述预设对象,则确定所述待播放视频中的视频帧,所述待播放视频中的视频帧为所述预设对象不适观看的图像;对所述待播放视频中的视频帧进行处理,得到目标播放视频,所述目标播放视频为所述预设对象适宜观看的视频。本发明实现了对待播放视频中的限制级内容进行处理,从而可以向预设对象提供适宜观看的视频。(The invention provides a video processing method and device. The method comprises the following steps: and acquiring a video to be played, and judging whether a preset object exists in a current video viewer. If the preset object exists in the current video viewer, determining a video frame in the video to be played, wherein the video frame in the video to be played is an image which is not suitable for being watched by the preset object; and processing the video frame in the video to be played to obtain a target playing video, wherein the target playing video is a video suitable for the preset object to watch. The invention realizes the processing of the limited content in the video to be played, thereby providing the video suitable for watching to the preset object.)

1. A video processing method is applied to a terminal device and comprises the following steps:

acquiring a video to be played;

judging whether a preset object exists in a current video viewer;

if the preset object exists in the current video viewer, determining a video frame in the video to be played, wherein the video frame in the video to be played is an image which is not suitable for being watched by the preset object;

and processing the video frame in the video to be played to obtain a target playing video, wherein the target playing video is a video suitable for the preset object to watch.

2. The method of claim 1, wherein the determining whether the preset object exists in the current video viewer comprises:

acquiring a face image of the current video viewer through a camera module in the terminal equipment;

carrying out age analysis on a current video viewer in the face image to obtain an analysis result;

and judging whether the preset object exists in the current video viewer or not according to the analysis result.

3. The method according to claim 2, wherein said determining whether the preset object exists in the current video viewer according to the analysis result comprises:

and if the analysis result shows that the age of the current video viewer is within a preset age range, determining that the preset object exists in the current video viewer.

4. The method of claim 2, wherein the determining the video frames in the video to be played comprises:

and determining the video frame in the video to be played according to the analysis result.

5. The method according to claim 4, wherein the determining the video frames in the video to be played according to the analysis result comprises:

determining a target keyword according to the analysis result;

and determining the video frame in the video to be played according to the target keyword.

6. The method according to claim 4, wherein the determining the video frames in the video to be played according to the analysis result comprises:

determining a target image according to the analysis result;

and according to the target image, carrying out image recognition on the video to be played, and determining a video frame in the video to be played.

7. The method according to any one of claims 1 to 6, wherein the processing the video frames in the video to be played to obtain a target playing video comprises:

deleting the video frames in the video to be played to obtain a deleted current playing video; determining the deleted current playing video as the target playing video; alternatively, the first and second electrodes may be,

acquiring a target area corresponding to a video frame in the video to be played, wherein the target area is an area in the video frame of the video to be played, in which the preset object is not suitable for watching; coding or mapping the target area to obtain a processed currently played video; and determining the processed current playing video as the target playing video.

8. The method according to any one of claims 1-3, further comprising:

receiving configuration information input by a user, wherein the configuration information comprises the mapping relation between the characteristic information of a video viewer and a video frame;

and determining the video frame in the video to be played according to the characteristic information of the preset object and the mapping relation.

9. An apparatus for processing video, comprising:

the acquisition module is used for acquiring a video to be played;

the judging module is used for judging whether a preset object exists in a current video viewer;

a determining module, configured to determine a video frame in the video to be played if the preset object exists in the current video viewer, where the video frame in the video to be played is an image that the preset object is not suitable for viewing;

and the processing module is used for processing the video frames in the video to be played to obtain a target playing video, wherein the target playing video is a video suitable for the preset object to watch.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for processing a video according to any one of claims 1 to 8.

11. An electronic device, comprising:

a processor; and

a memory for storing executable instructions of the processor;

wherein the processor is configured to perform the method of processing video of any of claims 1-8 via execution of the executable instructions.

Technical Field

The present invention relates to the field of video processing technologies, and in particular, to a method and an apparatus for processing a video.

Background

Various types of programs enrich people's daily lives, and programs watched by general users are videos. However, many of the content in the video is not suitable for children and teenagers to view, such as some limited level of content such as violence.

Disclosure of Invention

The invention provides a video processing method and a video processing device, which are used for solving the problem that the physical and mental health of a preset object is influenced after the video is played because the limited-level content in the video cannot be shielded in the prior art.

In a first aspect, the present invention provides a video processing method, applied to a terminal device, including:

acquiring a video to be played;

judging whether a preset object exists in a current video viewer;

if the preset object exists in the current video viewer, determining a video frame in the video to be played, wherein the video frame in the video to be played is an image which is not suitable for being watched by the preset object;

and processing the video frame in the video to be played to obtain a target playing video, wherein the target playing video is a video suitable for the preset object to watch.

Optionally, the determining whether a preset object exists in the current video viewer includes:

acquiring a face image of the current video viewer through a camera module in the terminal equipment;

carrying out age analysis on a current video viewer in the face image to obtain an analysis result;

and judging whether the preset object exists in the current video viewer or not according to the analysis result.

Optionally, the determining whether the preset object exists in the current video viewer according to the analysis result includes:

and if the analysis result shows that the age of the current video viewer is within a preset age range, determining that the preset object exists in the current video viewer.

Optionally, the determining a video frame in the video to be played includes:

and determining the video frame in the video to be played according to the analysis result.

Optionally, the determining, according to the analysis result, a video frame in the video to be played includes:

determining a target keyword according to the analysis result;

and determining the video frame in the video to be played according to the target keyword.

Optionally, the video frame in the video to be played is determined according to the analysis result,

determining a target image according to the analysis result;

and according to the target image, carrying out image recognition on the video to be played, and determining a video frame in the video to be played.

Optionally, the processing the video frame in the video to be played to obtain the target played video includes:

deleting the video frames in the video to be played to obtain a deleted current playing video; determining the deleted current playing video as the target playing video; alternatively, the first and second electrodes may be,

acquiring a target area corresponding to a video frame in the video to be played, wherein the target area is an area which is not suitable for being watched by the preset object in the video frame in the video to be played; coding or mapping the target area to obtain a processed currently played video; and determining the processed current playing video as the target playing video.

Optionally, the method further comprises:

receiving configuration information input by a user, wherein the configuration information comprises the mapping relation between the characteristic information of a video viewer and a video frame;

and determining the video frame in the video to be played according to the characteristic information of the preset object and the mapping relation.

In a second aspect, the present invention provides a video processing apparatus, including:

the acquisition module is used for acquiring a video to be played;

the judging module is used for judging whether a preset object exists in a current video viewer;

a determining module, configured to determine a video frame in the video to be played if the preset object exists in the current video viewer, where the video frame in the video to be played is an image that the preset object is not suitable for viewing;

and the processing module is used for processing the video frames in the video to be played to obtain a target playing video, wherein the target playing video is a video suitable for the preset object to watch.

Optionally, the determining module is specifically configured to:

acquiring a face image of the current video viewer through a camera module in the terminal equipment;

carrying out age analysis on a current video viewer in the face image to obtain an analysis result;

and judging whether the preset object exists in the current video viewer or not according to the analysis result.

Optionally, the determining module is specifically configured to:

and if the analysis result shows that the age of the current video viewer is within a preset age range, determining that the preset object exists in the current video viewer.

Optionally, the determining module is further configured to: and determining the video frame in the video to be played according to the analysis result.

Optionally, the determining module is specifically configured to:

determining a target keyword according to the analysis result;

and determining the video frame in the video to be played according to the target keyword.

Optionally, the determining module is specifically configured to:

determining a target image according to the analysis result;

and according to the target image, carrying out image recognition on the video to be played, and determining a video frame in the video to be played.

Optionally, the processing module is specifically configured to:

deleting the video frames in the video to be played to obtain a deleted current playing video; determining the deleted current playing video as the target playing video; alternatively, the first and second electrodes may be,

acquiring a target area corresponding to a video frame in the video to be played, wherein the target area is an area which is not suitable for being watched by the preset object in the video frame in the video to be played; coding or mapping the target area to obtain a processed currently played video; and determining the processed current playing video as the target playing video.

Optionally, the apparatus further comprises: a receiving module; wherein the content of the first and second substances,

the receiving module is used for receiving configuration information input by a user, wherein the configuration information comprises the mapping relation between the characteristic information of a video viewer and a video frame;

the determining module is further configured to determine a video frame in the video to be played according to the feature information of the preset object and the mapping relationship.

In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method for processing video according to the first aspect.

In a fourth aspect, the present invention provides an electronic device comprising:

a processor; and

a memory for storing executable instructions of the processor;

wherein the processor is configured to perform the method of processing video of the first aspect via execution of the executable instructions.

According to the video processing method and device provided by the invention, the video to be played is obtained, and whether a preset object exists in a current video viewer is judged. If the preset object exists in the current video viewer, determining a video frame in the video to be played, and processing the video frame in the video to be played to obtain a target playing video, wherein the video frame in the video to be played is an image which is not suitable for being watched by the preset object, and the target playing video is a video which is suitable for being watched by the preset object. The method and the device realize the processing of the limit level content in the video to be played, can provide the video suitable for watching for the preset children, improve the safety performance of video playing, and solve the problem that the physical and mental health of the preset object is influenced after the limit level content in the video cannot be shielded in the prior art.

Drawings

In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.

FIG. 1 is a flow chart of a video processing method provided by the present invention;

fig. 2a is a schematic diagram of deleting video frames in a video to be played according to the present invention;

fig. 2b is a schematic diagram of blurring video frames in a video to be broadcasted according to the present invention;

FIG. 3 is a flow chart of a video processing method provided by the present invention;

FIG. 4 is a flow chart of a video processing method provided by the present invention;

FIG. 5 is a schematic structural diagram of a video processing apparatus according to the present invention;

FIG. 6 is a schematic structural diagram of a video processing apparatus according to the present invention;

fig. 7 is a schematic diagram of a hardware structure of the electronic device provided by the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment provides a video processing method, a video processing device, video processing equipment and a storage medium, which can be applied to video processing technology. The video processing method provided in this embodiment may be executed by a Terminal device, where the Terminal device (Terminal device) includes, but is not limited to, a Mobile Station (MS), a Mobile Terminal (Mobile Terminal), a Mobile phone (Mobile Telephone), a handset (handset), a portable device (portable equipment), and the like, and the Terminal device may communicate with one or more core networks through a Radio Access Network (RAN), for example, the Terminal device may be a Mobile phone (or a "cellular" phone), a computer with a wireless communication function, and the like, and the Terminal device may also be a computer with a wireless transceiving function, a Virtual Reality (VR) Terminal device, an AR Terminal device, a wireless Terminal in an industrial control (industrial control), a wireless Terminal in an unmanned control (f driving), a wireless Terminal in a remote medical (remote medical), a wireless Terminal in an intelligent Network (smart grid), and the like, A wireless terminal in transportation security (transportation security), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), etc., and the operating system installed on the terminal device includes but is not limited to: IOS, Android, windows, linux, Mac OS and other operating systems. Terminals can be called different names in different networks, for example: subscriber equipment, mobile stations, subscriber units, stations, cellular telephones, personal digital assistants, wireless modems, wireless communication devices, handheld devices, laptops, cordless telephones, wireless local loop stations, televisions, and the like. For convenience of description, this embodiment is simply referred to as a terminal device.

In the following, a specific implementation procedure of the video processing method is described in detail through a specific embodiment with a terminal device as an execution subject.

Fig. 1 is a flowchart of a video processing method provided by the present invention, and as shown in fig. 1, the video processing method of this embodiment may include:

s101, obtaining a video to be played.

Specifically, in order to avoid that the child views the limited-level content in the video to be played, the terminal device may obtain the video to be played that is not played from its own storage module or through the network.

The video to be played can be a part which is not played in the complete video or a video which is not played completely, and the format and the size of the video to be played are not limited, so that the video to be played only needs to meet the requirement that the terminal equipment can play the video.

S102, judging whether a preset object exists in the current video viewer.

Specifically, the terminal device may determine whether a preset object exists in the current video viewer. When the preset object exists in the current video viewer, the terminal device may execute S103; when the preset object does not exist in the current video viewer, the terminal device can play the video to be played. The preset object can be a child, an adolescent or other people who are not suitable for watching the restricted content.

The terminal device may periodically or aperiodically determine whether the preset object exists in the current video viewer, which is not limited in this embodiment, so that the terminal device may monitor whether the preset object exists in the video viewer in front of the screen in real time, and prevent the preset object from viewing the content at the limited level in the video.

S103, if the preset object exists in the current video viewer, determining the video frame in the video to be played.

The video frame in the video to be played is an image which is not suitable for being watched by a preset object.

Specifically, when a preset object exists in a current video viewer, the terminal device searches whether each frame of video image in the video to be played has a limited-level content that cannot be watched by the preset object, so as to determine a video frame in the video to be played.

It should be noted that there is no chronological sequence between S101 and S102-S103, and S101 and S102-S103 may be executed simultaneously or sequentially.

And S104, processing the video frames in the video to be played to obtain the target playing video.

The target playing video is a video which is suitable for being watched by a preset object.

Specifically, the terminal device may process a video frame in the video terminal to be played to obtain a target played video, and then, the terminal device may play the target played video, so that the target played video viewed by the preset object may not contain the content of the restricted level.

On the basis of the above embodiment, a detailed description is given to a specific process of determining whether a child is present in the current video viewer at S102 in fig. 1 with reference to fig. 3. Fig. 3 is a flowchart of a video processing method provided by the present invention, and as shown in fig. 3, the video processing method of this embodiment may include:

s201, obtaining a video to be played.

S201 is similar to the implementation manner of S101 in the embodiment of fig. 1, and this embodiment is not described herein again.

S2021, acquiring a face image of the current video viewer through a camera module in the terminal device.

And S2022, carrying out age analysis on the current video viewer in the face image to obtain an analysis result.

S2023, judging whether a preset object exists in the current video viewer according to the analysis result.

Specifically, the terminal device is provided with the camera module, so that the image of a current video viewer in front of a screen of the terminal device can be acquired in real time, and a face image is obtained. In addition, the terminal equipment can also determine the face image of the current video viewer in front of the screen of the terminal equipment by receiving the images sent by other equipment. The embodiment does not limit the specific way in which the terminal device acquires the face image.

Further, through an image recognition technology, the terminal device can recognize the face image based on the characteristic information of the preset object, so as to judge whether the preset object exists in the current video viewer.

Specifically, because the ages of people in the face images of all ages are known, the terminal device can acquire the face images of all ages and perform age training aiming at the face images of the preset object, and can simulate the characteristic information of the preset object, so as to obtain a neural network model capable of identifying the preset object.

For example, taking a preset object as a child, the characteristic information of the child may include, but is not limited to, a skin plumpness, whether there are wrinkles on the face, and the like. And the Neural network model can adopt a Deep Convolutional Neural network (Deep Convolutional Neural Networks) structure, which includes but is not limited to: RCNN (regions with CNN features), ssd (single shotmultitox detector), Mask RCNN, and other image segmentation models.

It should be noted that: in this embodiment, reference may be made to the prior art for a specific implementation process of obtaining a neural network model based on a principle of a deep convolutional neural network structure for a terminal, which is not described herein in detail. In addition, the terminal device can also receive the neural network model trained by other devices.

Further, the terminal device may input the obtained face image into the neural network model, and the neural network model may perform age analysis on the current video viewer in the face image, and then output an analysis result. And the terminal equipment can judge whether a preset object exists in the current video viewer according to the analysis result.

In one possible implementation, whether the preset object exists may be determined as follows: and if the analysis result shows that the age of the current video viewer is within the preset age range, determining that a preset object exists in the current video viewer.

Specifically, after the age of the current video viewer in the face image is analyzed according to the neural network model and an analysis result is obtained, whether the video viewer with the age within a preset range exists or not is judged. For example, assuming that the preset objects include children and teenagers, it is determined whether there is a viewer aged 3 to 10 years, and it is determined whether there is a viewer aged 11 to 18 years, and if there is a viewer aged 3 to 10 years, it is determined that there is a child among the current video viewers, and if there is a viewer aged 11 to 18 years, it is determined that there is an teenager among the current video viewers.

S203, if the preset object exists in the current video viewer, determining the video frame in the video to be played.

The video frame in the video to be played is an image which is not suitable for being watched by a preset object.

In a possible implementation, the video frames in the video to be played may be determined according to the analysis result.

Specifically, after the age of the current video viewer in the face image is analyzed to obtain an analysis result, the video frame in the video to be played can be determined according to the analysis result. In this embodiment, the method for determining the video frame in the video to be played according to the analysis result is not limited. The following two possible embodiments are used to describe in detail the specific process of determining the video frames in the video to be played according to the analysis result.

In another possible implementation manner, a target keyword may be determined according to the analysis result, and a video frame in the video to be played may be determined according to the target keyword.

Specifically, when it is determined that the preset object exists in the current video viewer according to the analysis result, the target keyword is associated with the content of the restriction level that the preset object cannot view, so that the terminal device can determine the target keyword according to the analysis result, and thereby determine the video frame associated with the target keyword.

In this embodiment, the specific content of the target keyword is not limited. Optionally, the target keywords include: violent words or unhealthy words.

As can be understood by those skilled in the art, since the video content that can be watched by the video viewers of the respective ages is different, and the video content that can be watched by the video viewers of the different genders is also different, in order to further refine the content of the restriction level that cannot be watched by the preset object, the terminal device determines the video frames in the unplayed video in consideration of the ages, genders, and other factors of the viewers, and the video frames in the unplayed video and the target keywords have an association relationship, so that the terminal device can set different target keywords for different video viewers.

In another possible implementation manner, the target image may be determined according to the analysis result, and the video to be played is subjected to image recognition according to the target image, so as to determine the video frame in the video to be played.

Specifically, when it is determined that a preset object exists in the current video viewer according to the analysis result, the target image may be determined according to the analysis result. The present embodiment does not limit the specific content of the target image. Optionally, the target image comprises: an image containing a violent picture or an image containing an unhealthy picture.

After the target image is determined, image recognition may be performed on the video to be played, and the target image is determined from the video to be played, or an image with a higher similarity to the target image is determined, so that the determined images are determined as video frames.

Furthermore, any image recognition mode in the prior art can be adopted to perform image recognition on the video to be played.

And S204, processing the video frames in the video to be played to obtain the target playing video.

The target playing video is a video which is suitable for being watched by a preset object.

Specifically, after processing the video frames in the video to be played, the video suitable for the preset object to watch can be obtained.

The present embodiment does not limit the manner in which the terminal device processes the video frame in the video terminal to be played. Two possible embodiments are adopted to describe in detail the specific process of the terminal device for processing the video frame in the video terminal to be played.

A possible implementation manner, optionally, the specific process of processing the video frames in the video to be played in S104 in fig. 1 or S204 in fig. 3 to obtain the target played video may include:

deleting video frames in a video to be played to obtain a deleted current playing video; and determining the deleted current playing video as a target playing video.

Specifically, since the video frame in the video to be played is the content at the limited level, the terminal device may directly delete the video frame in the video to be played, so as to prevent the child from viewing the content at the limited level in the video to be played.

In a specific embodiment, the video to be played includes a video frame 1, a video frame 2, and a video frame 3, where the video frame 2 has content associated with the target keyword, so that the terminal device may delete the video frame 2, and at this time, the target played video obtained by the terminal device includes the video frame 1 and the video frame 3. For convenience of explanation, a specific process of deleting a video frame in a video to be played by the terminal device to obtain a target played video is illustrated with reference to fig. 2 a.

In another possible implementation manner, optionally, the processing of the video frame in the video to be played in S104 in fig. 1 or S204 in fig. 3, and the specific process of obtaining the target played video may include:

acquiring a target area corresponding to a video frame in a video to be played, wherein the target area is an area which is preset in the video frame in the video to be played and is not suitable for watching an object; coding or mapping the target area to obtain a processed currently played video; and determining the processed current playing video as a target playing video.

Specifically, since the video frame in the video to be played is the content at the limit level, the terminal device may acquire an area in the video frame in the video to be played, where the preset object is not suitable for viewing, and process the target area in the video frame in a coding or mapping manner, for example, process the target area in a mosaic, a picture, an emoticon, or a picture with a high degree of confusion, so as to prevent the preset object from viewing the content at the limit level in the video to be played.

In this embodiment, the target area may also be subjected to blurring or blurring processing, and an image in the target area may also be replaced by a preset picture, and the like.

In a specific embodiment, the video to be played includes a video frame 1, a video frame 2, and a video frame 3, where the video frame 2 has content associated with the target keyword, so that the terminal device may virtualize the video frame 2, and at this time, the target played video obtained by the terminal device includes the video frame 1, the virtualized video frame 2, and the video frame 3. For convenience of explanation, a specific process of blurring a video frame in a video to be played by the terminal device to obtain a target played video is illustrated with reference to fig. 2 b.

The video processing method provided by this embodiment obtains a video to be played, and determines whether a preset object exists in a current video viewer. And if the preset object exists in the current video viewer, determining the video frame in the video to be played, and processing the video frame in the video to be played to obtain the target playing video. According to the embodiment, the limitation-level content in the video to be played is processed, the video suitable for watching can be provided for the preset object, the safety performance of video playing is improved, and the problem that the physical and mental health of the preset object is influenced after the limitation-level content in the video cannot be shielded in the prior art is solved.

Next, a detailed process of the video processing method will be described in detail with reference to fig. 4. Fig. 4 is a flowchart of a video processing method provided by the present invention, and as shown in fig. 4, the video processing method of this embodiment may include:

s301, obtaining a video to be played.

S302, judging whether a preset object exists in the current video viewer.

S301 and S302 are similar to the implementation manners of S101 and S102 in the embodiment of fig. 1, and are not described herein again.

S3001, receiving configuration information input by a user, wherein the configuration information comprises a mapping relation between the characteristic information of a video viewer and a video frame.

S3002, determining the video frame in the video to be played according to the feature information of the preset object and the mapping relation.

Specifically, the user may input configuration information of a mapping relationship between a video viewer and a video frame through the terminal device, so that a preset relationship between the video viewer and the video frame is stored in the terminal device, where the preset relationship may include preset relationships between video viewers of different ages and the video frame, preset relationships between video viewers of different genders and the video frame, and the like. The terminal device can store the mapping relation in the form of identification or code, so as to save storage space.

Further, the terminal device may determine the video frame in the video to be played according to the feature information of the preset object and the mapping relationship, so as to implement the personalized configuration of the terminal device. The characteristic information of the preset object may include, but is not limited to, an age of the preset object, a gender of the preset object, and the like.

For example, the configuration information may also be a child mode option input by the user, where the child mode option includes a mapping relationship between a child and a video frame, and thus, the terminal device determines, according to the child mode option, a video frame that is not suitable for the child to watch in the video to be played.

It should be noted that: there is no chronological sequence among S301, S302, and S3001-S3002, and S301, S302, and S3001-S3002 may be executed simultaneously or sequentially.

And S303, if the preset object exists in the current video viewer, determining the video frame in the video to be played.

The video frame in the video to be played is an image which is not suitable for being watched by a preset object.

S304, processing the video frames in the video to be played to obtain the target playing video.

The target playing video is a video which is suitable for being watched by a preset object.

S303 and S304 are similar to the implementation manners of S101 and S102 in the embodiment of fig. 1, and are not described herein again.

Fig. 5 is a schematic structural diagram of a video processing apparatus according to the present invention, and as shown in fig. 5, the video processing apparatus 50 of this embodiment may include:

an obtaining module 51, configured to obtain a video to be played;

a judging module 52, configured to judge whether a preset object exists in the current video viewer;

a determining module 53, configured to determine a video frame in a video to be played if a preset object exists in a current video viewer, where the video frame in the video to be played is an image that the preset object is not suitable for viewing;

and the processing module 54 is configured to process a video frame in the video to be played to obtain a target played video, where the target played video is a video that is suitable for the preset object to watch.

Optionally, the determining module 52 is specifically configured to:

acquiring a face image of the current video viewer through a camera module in the terminal equipment;

carrying out age analysis on a current video viewer in the face image to obtain an analysis result;

and judging whether the preset object exists in the current video viewer or not according to the analysis result.

Optionally, the determining module 52 is specifically configured to:

and if the analysis result shows that the age of the current video viewer is within a preset age range, determining that the preset object exists in the current video viewer.

Optionally, the determining module 53 is further configured to: and determining the video frame in the video to be played according to the analysis result.

Optionally, the determining module 53 is specifically configured to:

determining a target keyword according to the analysis result;

and determining the video frame in the video to be played according to the target keyword.

Optionally, the determining module 53 is specifically configured to:

determining a target image according to the analysis result;

and according to the target image, carrying out image recognition on the video to be played, and determining a video frame in the video to be played.

Optionally, the processing module 54 is specifically configured to:

deleting the video frames in the video to be played to obtain a deleted current playing video; determining the deleted current playing video as the target playing video; alternatively, the first and second electrodes may be,

acquiring a target area corresponding to a video frame in the video to be played, wherein the target area is an area which is not suitable for being watched by the preset object in the video frame in the video to be played; coding or mapping the target area to obtain a processed currently played video; and determining the processed current playing video as the target playing video.

The video processing apparatus provided in the embodiment of the present invention may implement the above-mentioned video processing method embodiment, and for concrete implementation principles and technical effects, reference may be made to the above-mentioned method embodiment, which is not described herein again.

Fig. 6 is a schematic structural diagram of a video processing apparatus according to the present invention, and as shown in fig. 6, the video processing apparatus 50 of this embodiment further includes, on the basis of the apparatus structure shown in fig. 5:

a receiving module 55, configured to receive configuration information input by a user, where the configuration information includes a mapping relationship between feature information of a video viewer and a video frame;

the determining module 53 is further configured to determine a video frame in the video to be played according to the feature information of the preset object and the mapping relationship.

The video processing apparatus provided in the embodiment of the present invention may implement the above-mentioned video processing method embodiment, and for concrete implementation principles and technical effects, reference may be made to the above-mentioned method embodiment, which is not described herein again.

In the present invention, the video processing apparatus may be divided into functional modules according to the above method, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that the division of the modules in the embodiments of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

Fig. 7 is a schematic diagram of a hardware structure of the electronic device provided by the present invention. As shown in fig. 7, the electronic device 70 is configured to implement the operation corresponding to the terminal device in any of the above method embodiments, where the electronic device 70 of this embodiment may include: a memory 71 and a processor 72;

a memory 71 for storing a computer program;

a processor 72 for executing the computer program stored in the memory to implement the video processing method in the above-described embodiments. Reference may be made in particular to the description relating to the method embodiments described above.

Alternatively, the memory 71 may be separate or integrated with the processor 72.

When the memory 71 is a device separate from the processor 72, the electronic device 70 may further include:

a bus 73 for connecting the memory 71 and the processor 72.

Optionally, this embodiment further includes: a communication interface 74, the communication interface 74 being connectable to the processor 72 via a bus 73. The processor 72 may control the communication interface 73 to implement the above-described receiving and transmitting functions of the electronic device 70.

The electronic device provided in this embodiment may be used to execute the video processing method, and the implementation manner and the technical effect are similar, which are not described herein again.

The present invention also provides a computer-readable storage medium including a computer program for implementing the processing method of video as in the above embodiments.

In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.

Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.

In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.

The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.

It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.

The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.

The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.

The computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:评估视频质量的方法和设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类