CN107018447B - Method and device for shielding video picture based on user age - Google Patents

Method and device for shielding video picture based on user age Download PDF

Info

Publication number
CN107018447B
CN107018447B CN201610056031.8A CN201610056031A CN107018447B CN 107018447 B CN107018447 B CN 107018447B CN 201610056031 A CN201610056031 A CN 201610056031A CN 107018447 B CN107018447 B CN 107018447B
Authority
CN
China
Prior art keywords
information
shielding
video
covering
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610056031.8A
Other languages
Chinese (zh)
Other versions
CN107018447A (en
Inventor
王晓振
胡立琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou UCWeb Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou UCWeb Computer Technology Co Ltd filed Critical Guangzhou UCWeb Computer Technology Co Ltd
Priority to CN201610056031.8A priority Critical patent/CN107018447B/en
Publication of CN107018447A publication Critical patent/CN107018447A/en
Application granted granted Critical
Publication of CN107018447B publication Critical patent/CN107018447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • H04N21/4542Blocking scenes or portions of the received content, e.g. censoring scenes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • H04N21/4545Input to filtering algorithms, e.g. filtering a region of the image

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application discloses a method and a device for shielding video pictures based on user age, wherein the method comprises the following steps: according to the video selection of a user, acquiring a corresponding video source and shielding information, wherein the shielding information at least comprises time information of a shielding picture and age information of the shielding user; based on the video source, video playing is carried out, and when the time information of the video playing is matched with the time information of the shielding picture, the age information of the current user is obtained; judging whether the age information of the current user is matched with the age information of the shielding user; and if the video pictures are matched, shielding the currently played video picture. By adopting the method and the device disclosed by the application, the storage, management and transmission cost of the video source can be reduced.

Description

Method and device for shielding video picture based on user age
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a method and an apparatus for masking video frames based on user age.
Background
With the rapid development of the internet, more and more users select to log in the internet to watch videos. The process of the user logging in the internet to watch the video is generally as follows: firstly, opening a video player at a client; and then selecting the video to be watched from the player, acquiring the corresponding video source from the server by the player according to the selection of the user, and finally playing the video according to the video source.
As the number of videos provided by the internet is increased, and the subjects covered by the videos are also wider, some videos inevitably contain poor pictures (such as violence and pornography) which are not suitable for minors to watch. In the prior art, in order to avoid the influence of bad pictures on the underage users, the video sources of the videos are generally filtered in advance, and then the filtered video sources are provided for the underage users to watch. In actual life, adults also have the requirement of watching the videos, so that the requirement of watching by minors and adults is met simultaneously, two video sources are required to be provided for one video, one video source is a video source with a poor picture filtered, and the other video source is a complete video source.
As can be seen, with the method in the prior art, one video needs to provide multiple video sources, thereby increasing the storage, management and transmission costs of the video.
Content of application
The embodiment of the application provides a method and a device for shielding a video picture based on the age of a user so as to reduce the storage, management and transmission cost of a video source.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
in one aspect, the present application provides a method for masking video frames based on user age, including:
according to the video selection of a user, acquiring a corresponding video source and shielding information, wherein the shielding information at least comprises time information of a shielding picture and age information of the shielding user;
based on the video source, video playing is carried out, and when the time information of the video playing is matched with the time information of the shielding picture, the age information of the current user is obtained;
judging whether the age information of the current user is matched with the age information of the shielding user;
and if the video pictures are matched, shielding the currently played video picture.
Optionally, the shielding information further includes shielding mode information, where the shielding mode information at least includes fast-forward shielding information, masking shielding information, and skip shielding information.
Optionally, when the shielding mode information is the fast forward shielding information, shielding a currently played video picture, including: and carrying out fast forward operation on the video picture currently played.
Optionally, the covering and shielding information includes covering material information and covering area information; when the shielding mode information is the covering shielding information, the shielding of the currently played video picture includes:
acquiring a covering material according to the covering material information;
analyzing the information of the covering area to obtain the size information and the position information of the covering area;
adjusting the size of the covering material according to the size information of the covering area;
and according to the position information of the covering area, placing the adjusted covering material to the corresponding position of the current video playing picture.
Optionally, when the shielding mode information is the skip shielding information, the shielding the currently played video picture includes:
acquiring a skipped video source according to the skipped shielding information;
and on the basis of the current video playing picture, the video corresponding to the video source is played in an overlapping manner.
Optionally, when the shielding mode information includes both the covering shielding information and the skipping shielding information, the shielding the currently played video picture includes:
acquiring covering materials according to the covering material information in the covering shielding information;
analyzing the covering area information in the covering shielding information to obtain the size information and the position information of the covering area;
adjusting the size of the covering material according to the size information of the covering area;
according to the position information of the covering area, the adjusted covering material is placed at the corresponding position of the current video playing picture;
when the covering material receives the trigger of a user, acquiring a skipped video source according to the skipped shielding information;
and on the basis of the current video playing picture, the video corresponding to the video source is played in an overlapping manner.
Optionally, the time information of the mask picture includes a mask start time and a mask duration; the matching of the video playing time information and the shielding picture time information is as follows: the time information of the video playing is matched with the shielding starting moment; the shielding of the currently played video picture comprises the following steps: and shielding the played video picture, and setting the time length for shielding the video picture as the shielding time length.
In another aspect, the present application provides an apparatus for masking a video frame based on a user age, including:
the first acquisition module is used for acquiring a corresponding video source and shielding information according to video selection of a user, wherein the shielding information at least comprises time information of a shielding picture and age information of the shielding user;
the second acquisition module is used for playing a video based on the video source and acquiring the age information of the current user when the time information of the video playing is matched with the time information of the shielding picture;
the judging module is used for judging whether the age information of the current user is matched with the age information of the shielding user;
and the shielding module is used for shielding the currently played video picture when the age information of the user is matched with the age information of the shielded user.
Optionally, the shielding information further includes shielding mode information, where the shielding mode information at least includes fast-forward shielding information, masking shielding information, and skip shielding information.
Optionally, when the shielding mode information is the fast forward shielding information, the shielding module includes:
the first shielding unit is used for carrying out fast forward operation on the video picture which is played currently.
Optionally, the covering and shielding information includes covering material information and covering area information; when the shielding mode information is the covering shielding information, the shielding module includes:
the first covering material acquisition unit is used for acquiring covering materials according to the covering material information;
the first analysis unit is used for analyzing the information of the covering area to obtain the size information and the position information of the covering area;
the first adjusting unit is used for adjusting the size of the covering material according to the size information of the covering area;
and the second shielding unit is used for placing the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area.
Optionally, when the shielding mode information is the skip shielding information, the shielding module includes:
a first skip video source obtaining unit, configured to obtain a skip video source according to the skip masking information;
and the third shielding unit is used for playing the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
Optionally, when the shielding mode information includes both the covering shielding information and the skipping shielding information, the shielding module includes:
the second covering material acquisition unit is used for acquiring covering materials according to the covering material information in the covering shielding information;
the second analysis unit is used for analyzing the covering area information in the covering shielding information to obtain the size information and the position information of the covering area;
the second adjusting unit is used for adjusting the size of the covering material according to the size information of the covering area;
the fourth shielding unit is used for placing the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area;
the second skip video source acquisition unit is used for acquiring a skip video source according to the skip shielding information when the covering material receives the trigger of a user;
and the fifth shielding unit is used for playing the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
Optionally, the time information of the mask picture includes a mask start time and a mask duration; the second obtaining module is configured to play a video based on the video source, and obtain age information of a current user when time information of the video playing matches the masking start time; the shielding module includes: and the sixth shielding unit is used for shielding the played video picture and setting the time length for shielding the video picture as the shielding time length.
According to the technical scheme, in the embodiment of the application, the video playing time information is firstly obtained, and when the video playing time information is matched with the time information of the shielding picture, the picture played by the current video is not suitable for users in certain age groups; further, acquiring age information of the user, and when the age information of the user is matched with the age information of the shielding user, indicating that the current user is not suitable for watching the currently played video picture, and shielding the current picture; and when the age information of the user is not matched with the age information of the shielding user, the current user can normally watch the currently played video picture without any processing. Therefore, by adopting the method and the device provided by the embodiment of the application, one video only needs to provide one video source, and the watching requirements of users in all age groups can be met, so that the storage, management and transmission costs of the video source are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flow chart illustrating a method for masking video frames based on user age according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating a method for masking video frames based on user age according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a method for masking video frames based on user age according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating a method for masking video frames based on user age according to an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart illustrating a method for masking video frames based on user age according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus for masking video frames based on user age according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The application discloses a method for shielding video pictures based on user age, as shown in fig. 1, the method at least comprises:
step S11: the client player acquires a corresponding video source and shielding information according to video selection of a user, wherein the shielding information at least comprises time information of a shielding picture and age information of the shielding user;
in the embodiment of the present application, the implementation process of step S11 may specifically be as follows:
firstly, a client player acquires a first preset format video source and second preset format shielding information from a video source server according to video selection of a user.
In this embodiment of the application, the first preset format video source may be specifically provided by a video source provider, the second preset format shielding information may be specifically provided by the video source provider or a third-party service organization, and the video source provider or the third-party service organization may set shielding pictures of users of different ages for the video source. Then, the client player loads the first preset format video source and the second preset format shielding information into the memory of the client player; and finally, the client player analyzes the first preset format video source and the second preset format shielding information respectively to obtain corresponding video sources and shielding information. More specifically, in this embodiment of the application, the client player may specifically obtain, in the video source server, a link of the video source in the first preset format and a link of the shielding information in the second preset format, and then obtain, according to the links, the video source in the first preset format and the shielding information in the second preset format, respectively.
Step S12: the client player plays the video based on the video source, and acquires the age information of the current user when the time information of the video playing is matched with the time information of the shielding picture;
in practical application, the client player can play video according to the acquired video source; meanwhile, the client player plays the video of the video source, so that the client player can acquire the time information of the current video playing; and then, whether the time information of the current video playing is matched with the time information of the shielding picture can be judged, in the embodiment of the application, when the time information of the video playing is consistent with the time information of the shielding picture, the video playing is considered to be matched with the shielding picture, otherwise, the video playing is considered to be not matched with the shielding picture.
In the embodiment of the application, when the two are matched, the age information of the current user can be further acquired. In the embodiment of the present application, the age information of the current user may be specifically obtained from the registration information of the current user.
Step S13: the client player judges whether the age information of the current user is matched with the age information of the shielding user; if so, go to step S14; otherwise, ending the flow;
step S14: and the client player shields the currently played video picture.
In the embodiment of the application, if the age information of the current user is matched with the age information of the shielding user, the current user is not suitable for watching the currently played video picture, so that the video picture played by the current user needs to be shielded; and if the age information of the current user is not matched with the age information of the shielding user, the user can normally watch the currently played video surface, and the video playing can be normally carried out without any processing.
As can be seen from the above, in the embodiment of the present application, first, time information of video playing is obtained, and when the time information of video playing matches with the time information of a mask picture, it indicates that the current picture of video playing is uncomfortable for users of certain ages; further, acquiring age information of the user, and when the age information of the user is matched with the age information of the shielding user, indicating that the current user is not suitable for watching the currently played video picture, and shielding the current picture; and when the age information of the user is not matched with the age information of the shielding user, the current user can normally watch the currently played video picture without any processing. Therefore, by adopting the method provided by the embodiment of the application, one video only needs to provide one video source, and the watching requirements of users in all age groups can be met, so that the storage, management and transmission costs of the video source are reduced.
In another possible embodiment of the present application, the shielding information in all the embodiments described above may further include shielding manner information, where the shielding manner information at least includes fast-forward shielding information, covering shielding information, and skip shielding information. In this embodiment of the application, when the shielding manner information is fast-forward shielding information, step S14 in all the embodiments may specifically include: and the client player carries out fast forward operation on the currently played video picture.
In the embodiment of the application, the current video picture can be shielded from the user by performing fast forward operation on the currently played video picture.
In another possible embodiment of the present application, the covering and shielding information in all the embodiments at least includes covering material information and covering area information; when the shielding manner information in all the embodiments is the covering shielding information, as shown in fig. 2, step S14 in all the embodiments may specifically include:
step S21: the client player acquires the covering material according to the covering material information;
in the embodiment of the application, the information of the covering material can be specifically the storage address of the covering material, and the client player can directly obtain the covering material according to the storage address of the covering material; in the embodiment of the present application, the covering material may be specifically a picture.
Step S22: the client player analyzes the covering area information to obtain covering area size information and covering area position information;
in the embodiment of the present application, the information of the coverage area may specifically be composed of information of a size of the coverage area and information of a position of the coverage area. Therefore, in the embodiment of the application, the information of the size of the covering area and the information of the position of the covering area can be obtained by analyzing the information of the covering area;
step S23: the client player adjusts the size of the covering material according to the size information of the covering area;
in the embodiment of the present application, the size of the coverage area may be specifically obtained according to the information on the size of the coverage area; the masking material is then sized to correspond to the dimensions of the masking zone.
Step S24: and the client player places the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area.
In the embodiment of the present application, the covering area position information may specifically be composed of position coordinates of the covering area. In the embodiment of the application, the adjusted covering material is placed at the position coordinates, so that the currently played video picture can be shielded. In the embodiment of the application, when the area represented by the covering area information is the current whole video picture, the shielding of the whole video picture can be realized, and when the area represented by the covering area information is the partial area of the current video picture, the covering of the partial area of the current video picture can be realized.
Therefore, in the embodiment of the application, the covering material is used, so that all or part of the currently played video picture can be shielded.
In another possible embodiment of the present application, when the masking mode information in all the embodiments is skip masking information, as shown in fig. 3, step S14 in all the embodiments may specifically include:
step S31: the client player acquires a skipped video source according to the skipped shielding information;
in the embodiment of the application, the skip masking information may specifically consist of a skip video source, so that the skip video source may be acquired according to the skip masking information;
step S32: and the client player plays the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
In the embodiment of the application, the video corresponding to the video source is overlapped and played on the basis of the current video playing picture, so that the current video playing picture can be shielded. In the embodiment of the present application, the size of the skipped video playing picture can be specifically adjusted to be consistent with the size of the current video playing picture.
In another possible embodiment of the present application, the shielding manner information in the above described embodiments may include both covering shielding information and skipping shielding information, as shown in fig. 4, step S14 in all the above embodiments may specifically include:
step S41: the client player acquires covering materials according to the covering material information in the covering shielding information;
step S42: the client player analyzes the covering area information in the covering shielding information to obtain the size information and the position information of the covering area;
step S43: the client player adjusts the size of the covering material according to the size information of the covering area;
step S44: and the client player places the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area.
Step S45: when the covering material receives the trigger of a user, the client player acquires a skipped video source according to the skipped shielding information;
step S46: and the client player plays the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
In the embodiment of the application, the covering of the current video picture can be realized by using the covering material, and then when a user clicks the covering material, the video corresponding to the skip video source is played, so that the double-layer shielding of the current video picture is realized.
The present application also discloses a method for masking video pictures based on user age, as shown in fig. 5, the method includes:
step S51: the client player obtains a corresponding video source and shielding information according to video selection of a user, wherein the shielding information at least comprises time information of a shielding picture and age information of the shielding user, and the time information of the shielding picture at least comprises a shielding starting time and shielding duration;
step S52: the client player plays the video based on the video source, and acquires the age information of the current user when the time information of the video playing is matched with the shielding starting moment;
step S53: the client player judges whether the age information of the current user is matched with the age information of the shielding user; if so, go to step S54; otherwise, ending the flow;
step S54: and the client player shields the played video picture, and the time length for shielding the video picture is set as the shielding time length.
Of course, in the embodiment of the present application, one or more of the fast forward masking, the covering masking, and the skip masking may be specifically adopted for the manner of masking the played video frame, and the implementation manner thereof is consistent with the corresponding implementation manner, and is not described herein again.
As can be seen from the above, in the embodiment of the present application, not only can the currently played video frame be shielded, but also a plurality of continuously played video frames can be continuously shielded.
In another possible embodiment of the present application, a standard format of the above-mentioned mask information is provided, which is specifically as follows: [ Time: time information of the mask screen, age: shielding age information of the user, area nfo (n);
wherein, the "Time: the standard format of the "time information of the mask picture" may be specifically as follows: { startTime: the starting time of the shielding, duration, shielding duration }; at this time, correspondingly, the format of the shielding information may be [ startTime: mask start time, duration, mask duration, age: shielding age information of the user, area nfo (n);
in the embodiment of the present application, the standard format of area info (n) may be as follows: { mask region position information, mask region size information, blockType: mask mode information, blockContent: shielding material information };
the format of the position information of the shielded area may specifically be: x: initial shielding position abscissa, y: the initial shielding position ordinate; the mask region size information may specifically be: w: width of shielding region, h: height of the shielded area; accordingly, the format of arealnfo (n) is specifically [ x: initial shielding position abscissa, y: initial shielding position ordinate, w: width of shielding region, h: the height of the shielding region, lockType, shielding mode information, blockContent: shield material information ].
In this embodiment of the present application, when a video picture is masked by using a fast forward mode, a value corresponding to a blockType in area info (n) may be specifically set as fast forward, and values corresponding to x, y, w, h, and blockContent are all set as invalid values, which in this embodiment of the present application may be specifically set as-1.
In the embodiment of the present application, when a video frame is masked by using a skip mode, a value corresponding to a blockType in area info (n) may be specifically set as a skip, and values corresponding to x, y, w, and h are all set as invalid values, where the invalid value may also be specifically-1; and setting the value corresponding to the blockContent as the storage address of the skip video source.
In this embodiment of the present application, when a video frame is masked by using a masking method, a value corresponding to a blockType in arealnfo (n) may be specifically set as a masking, x is set as a starting abscissa value of a masking region, y is set as a starting ordinate of the masking region, w is set as a width value of the masking region, h is set as a height value of the masking region, and a value corresponding to blockContent is set as a storage address of a masking material. In the embodiment of the present application, when the video picture is shielded by using the covering mode, a plurality of areas (n) may be set simultaneously, so as to realize covering and shielding of a plurality of areas of the video picture.
In this embodiment of the application, when the video frame is masked simultaneously by using the masking manner and the skipping manner, a value corresponding to a blockType in the area info (n) may be specifically set to be masking + skipping, x is set to be a starting abscissa value of a masking region, y is set to be a starting ordinate of the masking region, w is set to be a width value of the masking region, h is set to be a height value of the masking region, and a value corresponding to lockContent is set to be a storage address of a masking material + a storage address of a skipping video source.
In another possible embodiment of the present application, the masking information of a video source is taken as an example to describe the process of the present application in detail: in the embodiment of the present application, it is assumed that the mask information of a video source is specifically as follows:
[ startTime:2910000, duration:5000, age: less than 15, { x: 150, y: 210, w: 30, h:50}, blockType: (covering + jumping), and blockConent { https:// xxx/adpic-00001.jpg, https:// xxx/addcontent-0001 } ], in the embodiment of the present application, the above-mentioned shielding information and the corresponding video source can be placed in the video source server at the same time.
In the embodiment of the application, when a user has a requirement for playing a video corresponding to the video source, the client player can acquire the video source and the shielding information; then, the client player plays the video based on the video source, and when the client player plays the video to 2910000 units (the unit can be specifically a second), the client player acquires the age information of the user and judges whether the age of the current user is less than 15 years old; if the current user is more than or equal to 15 years old, the client player does not perform any processing on the video playing picture of the current user; and if the current user is less than 15 years old, the client player specifically adopts the following mode to shield the video picture played by the current user:
firstly, obtaining shielding mode information in current shielding information, namely obtaining the content in a blockType field, wherein the shielding mode of the current shielding information is covering and skipping;
then, acquiring a covering material according to the content in the blockConet field; in the embodiment of the application, a material picture can be obtained from a storage address https:// xxx/adpic-00001. jpg; then, the size of the material picture is adjusted to be consistent with the information of the covering area in the shielding information, namely w of the material picture is adjusted to be 30 units (the unit can be specifically a pixel), and h is adjusted to be 50 units (the unit can also be specifically a pixel); then, the adjusted material is placed at the position of the covering area, that is, the starting position of the adjusted material is placed at the position where x is 30 units (the unit may be specifically centimeter) and y is 50 units (the unit may be specifically centimeter), at this time, the shielding of the current video picture is completed, and 5000 units (the unit may be specifically second) of the current video picture is continuously shielded, and the shielding of the video picture is released after 5000 units.
In the embodiment of the application, when the covering material receives the trigger of a user, namely the user clicks the covering material, a skip video source is obtained in a blockConet field; in the embodiment of the application, a skip video source can be obtained from a storage address https:// xxx/auxiliary-0001; and then, on the basis of the current video picture, overlaying and playing the video corresponding to the jumping video.
Through the above description of the method embodiments, those skilled in the art can clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media that can store program codes, such as Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and so on.
Corresponding to the embodiment of the method for masking video pictures based on user age provided by the present application, the present application further provides an apparatus for masking video pictures based on user age, as shown in fig. 6, the apparatus at least includes:
the first obtaining module 61 is configured to obtain a corresponding video source and shielding information according to video selection of a user, where the shielding information at least includes time information of a shielding picture and age information of the shielding user;
a second obtaining module 62, configured to perform video playing based on the video source, and obtain age information of the current user when the time information of the video playing matches the time information of the mask image;
a judging module 63, configured to judge whether the age information of the current user matches the age information of the masked user;
and the shielding module 64 is used for shielding the currently played video picture when the age information of the user is matched with the age information of the shielded user.
According to the technical scheme, in the embodiment of the application, the video playing time information is firstly obtained, and when the video playing time information is matched with the time information of the shielding picture, the picture played by the current video is not suitable for users in certain age groups; further, acquiring age information of the user, and when the age information of the user is matched with the age information of the shielding user, indicating that the current user is not suitable for watching the currently played video picture, and shielding the current picture; and when the age information of the user is not matched with the age information of the shielding user, the current user can normally watch the currently played video picture without any processing. Therefore, by adopting the device provided by the embodiment of the application, one video only needs to provide one video source, so that the watching requirements of users in all age groups can be met, and the storage, management and transmission costs of the video source are reduced.
In another possible embodiment of the present application, the shielding information in all the embodiments further includes shielding manner information, and the shielding manner information at least includes fast-forward shielding information, covering shielding information, and skip shielding information. In this embodiment of the present application, when the shielding mode information is the fast forward shielding information, the shielding module includes:
the first shielding unit is used for carrying out fast forward operation on the video picture which is played currently.
In another possible embodiment of the present application, the covering mask information in all the embodiments includes covering material information and covering area information; when the shielding mode information is the covering shielding information, the shielding module includes:
the first covering material acquisition unit is used for acquiring covering materials according to the covering material information;
the first analysis unit is used for analyzing the information of the covering area to obtain the size information and the position information of the covering area;
the first adjusting unit is used for adjusting the size of the covering material according to the size information of the covering area;
and the second shielding unit is used for placing the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area.
In another possible embodiment of the present application, when the shielding mode information in all the embodiments is the skip shielding information, the shielding module includes:
a first skip video source obtaining unit, configured to obtain a skip video source according to the skip masking information;
and the third shielding unit is used for playing the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
In another possible embodiment of the present application, when the shielding manner information in all the embodiments includes both the covering shielding information and the skipping shielding information, the shielding module includes:
the second covering material acquisition unit is used for acquiring covering materials according to the covering material information in the covering shielding information;
the second analysis unit is used for analyzing the covering area information in the covering shielding information to obtain the size information and the position information of the covering area;
the second adjusting unit is used for adjusting the size of the covering material according to the size information of the covering area;
the fourth shielding unit is used for placing the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area;
the second skip video source acquisition unit is used for acquiring a skip video source according to the skip shielding information when the covering material receives the trigger of a user;
and the fifth shielding unit is used for playing the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
In another possible embodiment of the present application, the time information of the mask picture in all the embodiments includes a mask start time and a mask duration; the second obtaining module is configured to play a video based on the video source, and obtain age information of a current user when time information of the video playing matches the masking start time; the shielding module includes: and the sixth shielding unit is used for shielding the played video picture and setting the time length for shielding the video picture as the shielding time length.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. The method for shielding video pictures based on the age of a user is characterized by comprising the following steps:
according to video selection of a user, acquiring a corresponding video source and shielding information, wherein the shielding information at least comprises time information of a shielding picture relative to the video source and age information of the shielding user, and the time information of the shielding picture relative to the video source comprises a shielding starting time and shielding duration;
based on the video source, video playing is carried out, and when the time information of the video playing is matched with the shielding starting moment, the age information of the current user is obtained;
judging whether the age information of the current user is matched with the age information of the shielding user;
and if the video pictures are matched, shielding the currently played video pictures, and setting the time length for shielding the video pictures as the shielding time length.
2. The method of claim 1, wherein the mask information further comprises mask mode information, the mask mode information comprising at least fast forward mask information, mask information, and skip mask information.
3. The method according to claim 2, wherein when the masking mode information is the fast forward masking information, masking a currently played video picture, comprises: and carrying out fast forward operation on the video picture currently played.
4. The method of claim 2, wherein the masking information includes masking material information and masking region information; when the shielding mode information is the covering shielding information, the shielding of the currently played video picture includes:
acquiring a covering material according to the covering material information;
analyzing the information of the covering area to obtain the size information and the position information of the covering area;
adjusting the size of the covering material according to the size information of the covering area;
and according to the position information of the covering area, placing the adjusted covering material to the corresponding position of the current video playing picture.
5. The method according to claim 2, wherein when the masking mode information is the skip masking information, the masking the currently played video frame comprises:
acquiring a skipped video source according to the skipped shielding information;
and on the basis of the current video playing picture, the video corresponding to the video source is played in an overlapping manner.
6. The method of claim 2, wherein when the mask mode information includes both the mask information and the skip mask information, the masking the currently played video frame comprises:
acquiring covering materials according to the covering material information in the covering shielding information;
analyzing the covering area information in the covering shielding information to obtain the size information and the position information of the covering area;
adjusting the size of the covering material according to the size information of the covering area;
according to the position information of the covering area, the adjusted covering material is placed at the corresponding position of the current video playing picture;
when the covering material receives the trigger of a user, acquiring a skipped video source according to the skipped shielding information;
and on the basis of the current video playing picture, the video corresponding to the video source is played in an overlapping manner.
7. An apparatus for masking video frames based on user age, comprising:
the first acquisition module is used for acquiring a corresponding video source and shielding information according to video selection of a user, wherein the shielding information at least comprises time information of a shielding picture relative to the video source and age information of the shielding user, and the time information of the shielding picture relative to the video source comprises a shielding starting time and shielding duration;
the second acquisition module is used for playing a video based on the video source and acquiring the age information of the current user when the time information of playing the video is matched with the shielding starting moment;
the judging module is used for judging whether the age information of the current user is matched with the age information of the shielding user;
and the shielding module is used for shielding the currently played video picture when the age information of the user is matched with the age information of the shielding user, and the time length for shielding the video picture is set as the shielding time length.
8. The apparatus of claim 7, wherein the mask information further comprises mask mode information, the mask mode information comprising at least fast forward mask information, mask information, and skip mask information.
9. The apparatus of claim 8, wherein when the mask mode information is the fast forward mask information, the mask module comprises:
the first shielding unit is used for carrying out fast forward operation on the video picture which is played currently.
10. The apparatus of claim 8, wherein the masking information comprises masking material information and masking zone information; when the shielding mode information is the covering shielding information, the shielding module includes:
the first covering material acquisition unit is used for acquiring covering materials according to the covering material information;
the first analysis unit is used for analyzing the information of the covering area to obtain the size information and the position information of the covering area;
the first adjusting unit is used for adjusting the size of the covering material according to the size information of the covering area;
and the second shielding unit is used for placing the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area.
11. The apparatus of claim 8, wherein when the mask mode information is the skip mask information, the mask module comprises:
a first skip video source obtaining unit, configured to obtain a skip video source according to the skip masking information;
and the third shielding unit is used for playing the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
12. The apparatus of claim 8, wherein when the mask mode information includes both the mask information and the skip mask information, the mask module comprises:
the second covering material acquisition unit is used for acquiring covering materials according to the covering material information in the covering shielding information;
the second analysis unit is used for analyzing the covering area information in the covering shielding information to obtain the size information and the position information of the covering area;
the second adjusting unit is used for adjusting the size of the covering material according to the size information of the covering area;
the fourth shielding unit is used for placing the adjusted covering material to the corresponding position of the current video playing picture according to the position information of the covering area;
the second skip video source acquisition unit is used for acquiring a skip video source according to the skip shielding information when the covering material receives the trigger of a user;
and the fifth shielding unit is used for playing the video corresponding to the video source in an overlapping manner on the basis of the current video playing picture.
CN201610056031.8A 2016-01-27 2016-01-27 Method and device for shielding video picture based on user age Active CN107018447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610056031.8A CN107018447B (en) 2016-01-27 2016-01-27 Method and device for shielding video picture based on user age

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610056031.8A CN107018447B (en) 2016-01-27 2016-01-27 Method and device for shielding video picture based on user age

Publications (2)

Publication Number Publication Date
CN107018447A CN107018447A (en) 2017-08-04
CN107018447B true CN107018447B (en) 2020-05-05

Family

ID=59438859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610056031.8A Active CN107018447B (en) 2016-01-27 2016-01-27 Method and device for shielding video picture based on user age

Country Status (1)

Country Link
CN (1) CN107018447B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051171A (en) * 2021-11-15 2022-02-15 上海卓易科技股份有限公司 Fear picture shielding method and system in video based on AI emotion analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123674A (en) * 2006-08-09 2008-02-13 明基电通信息技术有限公司 Lock system and method
CN102547271A (en) * 2010-12-24 2012-07-04 瀚斯宝丽股份有限公司 Video content output device and method capable of filtering video contents according to looker age
CN103957458A (en) * 2014-04-28 2014-07-30 京东方科技集团股份有限公司 Video playing device, control device, video playing system and control method
CN207399418U (en) * 2017-10-24 2018-05-22 北京蓝海华业工程技术有限公司 A kind of TV based on recognition of face

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123674A (en) * 2006-08-09 2008-02-13 明基电通信息技术有限公司 Lock system and method
CN102547271A (en) * 2010-12-24 2012-07-04 瀚斯宝丽股份有限公司 Video content output device and method capable of filtering video contents according to looker age
CN103957458A (en) * 2014-04-28 2014-07-30 京东方科技集团股份有限公司 Video playing device, control device, video playing system and control method
CN207399418U (en) * 2017-10-24 2018-05-22 北京蓝海华业工程技术有限公司 A kind of TV based on recognition of face

Also Published As

Publication number Publication date
CN107018447A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN112753225B (en) Video processing for embedded information card positioning and content extraction
CN1160962C (en) Interactive television program guide with selectable languages
JP5651231B2 (en) Media fingerprint for determining and searching content
JP4482829B2 (en) Preference extraction device, preference extraction method, and preference extraction program
CN102163212B (en) Video segment identification
RU2595520C2 (en) Coordinated automatic arrangement of advertisements for personal content channels
US20150248918A1 (en) Systems and methods for displaying a user selected object as marked based on its context in a program
US20180131976A1 (en) Serializable visually unobtrusive scannable video codes
CN105578255A (en) Advertisement playing method and device
CN1805539A (en) Systems and methods for improved audience measuring
CN110798711B (en) Advertisement information processing method, device, computer equipment and storage medium
CN112753227A (en) Audio processing for detecting the occurrence of crowd noise in a sporting event television program
US9807445B2 (en) Photosensitivity protection for video display
US20220321969A1 (en) Bullet comment processing method and apparatus
US20110167445A1 (en) Audiovisual content channelization system
CN111107434A (en) Information recommendation method and device
CN110856013A (en) Method, system and storage medium for identifying key segments in video
CN111754254A (en) System and method for dynamically creating and inserting immersive promotional content in multimedia
CN107018447B (en) Method and device for shielding video picture based on user age
CN105791953B (en) Control method for playing back and device
CN103916705A (en) Method and device for achieving mosaic navigation at electronic terminal
US10972809B1 (en) Video transformation service
KR20210015465A (en) T-commerce experience providing method of calling regional advertisement matched with tv commercial video with realtime analysis
EP3292692B1 (en) Method for setting the level of definition of the images of a multimedia programme
CN104822086A (en) Information push method, terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200709

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right