CN106792153B - Video identification processing method and device and computer readable storage medium - Google Patents

Video identification processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN106792153B
CN106792153B CN201611088673.2A CN201611088673A CN106792153B CN 106792153 B CN106792153 B CN 106792153B CN 201611088673 A CN201611088673 A CN 201611088673A CN 106792153 B CN106792153 B CN 106792153B
Authority
CN
China
Prior art keywords
video
production line
picture
position information
identifier
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
CN201611088673.2A
Other languages
Chinese (zh)
Other versions
CN106792153A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611088673.2A priority Critical patent/CN106792153B/en
Publication of CN106792153A publication Critical patent/CN106792153A/en
Application granted granted Critical
Publication of CN106792153B publication Critical patent/CN106792153B/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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440245Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream

Landscapes

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

Abstract

The invention relates to the technical field of internet, in particular to a video identification processing method and device. The method comprises the steps of firstly configuring corresponding mask pictures according to the requirements of television manufacturers, television operators and license plate parties, and covering the video marks with the mask pictures in the video playing process by detecting the positions of the video marks in the video, so that the requirements of the central office of broadcasting and television are met, and the requirements of the television manufacturers and the television operators are also met; in addition, the mode of shielding the video identification by the mask picture does not need to change the frame picture of the original video file, so that the quality of the video image can be ensured, and a better playing effect can be realized at a television end.

Description

Video identification processing method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a video identification processing method and device.
Background
In the related technology, for the purpose of publicity, a video content provider usually adds L OGO identifiers to the video files provided by the video content provider, but for the video played on the television, the broadcasting and television bureau definitely requires that L OGO corresponding to the content provider is prohibited to appear on the broadcast picture, and the existing processing method is to re-edit the video files, blur L OGO in the video frames by an interpolation method or directly mark L OGO with mosaic, so that L OGO appears in the television broadcast picture.
Disclosure of Invention
The inventor researches and finds that although the content provider L OGO (namely video identification) can be prevented from appearing in the playing picture by means of interpolation blurring or mosaic making, the processing is complex, the image quality of the position where L OGO is located is seriously damaged, the playing effect of the video is reduced, besides, different television manufacturers, television operators and license plate parties put different requirements on whether new video identification is added or not besides that the content provider L OGO is forbidden to appear on the playing picture by the broadcasting and television bureau, and the manner of interpolation blurring or mosaic making of the provider L OGO in the video file is difficult to meet the requirements of multiple parties.
In view of the above drawbacks, the inventor proposes a video identifier processing method and apparatus. Under the condition that an original video file is not changed, in the video playing process, the mask picture is adopted to cover the video mark, so that the image quality is guaranteed, and the requirements of a television manufacturer, a television operator and a license plate party are met.
In one aspect, the present invention provides a video identifier processing method, including:
receiving a playing operation instruction of a video file, and acquiring a video ID of the video file and a production line ID of a video client, wherein the production line ID is used for identifying television manufacturer information or television operator information;
acquiring position information of a video identifier in a frame picture of the video file according to the video ID and the production line ID;
judging whether the video identification needs to be shielded or not according to the position information, if so, judging whether the video identification needs to be shielded or not
And acquiring a mask picture matched with the production line ID, and shielding the video identification according to the mask picture and the position information.
In another aspect, the present invention provides a video identifier processing apparatus, including:
the response unit is used for receiving a playing operation instruction of a video file, and acquiring a video ID of the video file and a production line ID of a video client, wherein the production line ID is used for identifying television manufacturer information or television operator information;
the first acquisition unit is used for acquiring the position information of the video identifier in the frame picture of the video file according to the video ID and the production line ID;
the judging unit is used for judging whether the video identification needs to be shielded or not according to the position information;
the second obtaining unit is used for obtaining a mask picture matched with the ID of the production line when the judgment result of the judging unit is that the video identification needs to be shielded;
and the processing unit is used for shielding the video identification according to the mask picture and the position information.
The invention has the following beneficial effects:
the method comprises the steps of firstly configuring corresponding mask pictures according to the requirements of television manufacturers, television operators and license plate parties, and covering the video marks with the mask pictures by detecting the positions of the video marks in the video, so that the requirements of the central office of radio and television are met, and the requirements of the television manufacturers and the television operators are also met; in addition, the mode of shielding the video identification by the mask picture does not need to change the original video file, the quality of the video image can be ensured, and a better playing effect can be realized at a television end.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a block diagram of a hardware structure of a computer terminal of a video identifier processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a video identification processing method according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of a video identification processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for determining location information of a video tag according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a scene with a video logo displayed on a display screen according to an embodiment of the present invention;
FIG. 6 is a block diagram of a video identification processing apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of a video identification processing apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of a structure of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The present embodiment provides an embodiment of a video identification processing method, it should be noted that the steps shown in the flowchart of the figure may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in an order different from that shown.
The method embodiments provided in the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the video identifier processing method running on a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of the computer terminal of the video identifier processing method disclosed in the embodiment of the present invention. As shown in fig. 1, the computer terminal 100 may include one or more (only one shown) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, computer terminal 100 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the video identifier processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the above-mentioned video identifier processing method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 100. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Under the operating environment, the application provides a video identification processing method as shown in fig. 2. The method can be applied to intelligent terminal equipment, and is executed by a processor in the intelligent terminal equipment, and the intelligent terminal equipment can be an intelligent mobile phone, a tablet personal computer, an intelligent television and the like. The intelligent terminal device is provided with at least one application program, and the embodiment of the invention does not limit the types of the application programs, and can be a system application program or a software application program.
Fig. 2 is a flowchart of a video identification processing method according to an embodiment of the present invention. As shown in fig. 2, an alternative version of the method comprises the steps of:
step 201, receiving a play operation instruction for a video file, and acquiring a video ID of the video file and a production line ID of a video client, wherein the production line ID is used for identifying television manufacturer information or television operator information;
step S202, acquiring position information of a video identifier in a frame picture of the video file according to the video ID and the production line ID;
step S203, judging whether the video identification needs to be shielded or not according to the position information;
and S204, if the video identification needs to be shielded, acquiring a mask picture matched with the production line ID, and shielding the video identification according to the mask picture and the position information.
The video identifiers described in this embodiment include, but are not limited to L OGO, tv station logo, advertisement L OGO, and "live" character picture, and the video identifiers generally appear at the upper right corner of the display screen, the video ID is a preset code for identifying video files, each video file corresponds to a unique video ID. tv vendor, the tv operator cooperates with the video content provider to obtain the video files from the video content provider, and then the video files are played on the display terminal.
For the purposes of publicity and the like, most content providers embed corresponding L OGOs in frame pictures of video files, but videos played on televisions have to meet the requirements of the central office of broadcasting and television, while content providers L OGOs are not allowed to appear on television pictures, L OGOs in each frame picture of videos are processed in a fuzzy interpolation or mosaic interpolation mode in the conventional way, and such a mode is complex in processing, consumes resources, can cause damage to image quality of L OGOs and even surrounding positions, affects video playing effect, and is not good in user experience.
In view of the above reasons, this embodiment proposes to pre-configure a mask picture meeting display requirements of each production line (i.e., to store the mask picture and the production line ID correspondingly), and store position information of each video identifier corresponding to each production line (i.e., to store the video ID, the production line ID and the position information of the video identifier correspondingly), when playing a video, first obtain the position information of the video identifier corresponding to the production line ID, determine whether to process the video identifier according to the position information, if so, obtain the corresponding mask picture, and shield the video identifier by using the mask picture, so that the display requirements of the production line or the license plate can be met without changing the content of the video file, and the quality of the video image can be ensured, and the user experience can be improved.
Example 2
The embodiment provides a video identification processing method. In the operating environment as in embodiment 1, the present application provides a video identification processing method as shown in fig. 3. Fig. 3 is a detailed flowchart of a video identifier processing method according to an embodiment of the present invention. As shown in fig. 3, an alternative version of the method comprises the steps of:
the method comprises the following steps: configuring a mask configuration table and the media asset information.
The media information is stored in a media information system and comprises video information, production line information and position information of corresponding video identification; the video information comprises a video ID, and the video information can also comprise information such as the title, the year, actors, brief introduction and the like of the video; the production line information includes a production line ID. An alternative method for obtaining video identification position information corresponding to video information and production line information, as shown in fig. 4, includes the following steps:
s11: and acquiring the video file and the video ID corresponding to the video file.
In step S11, the video configuration information may be obtained from the server, and the configuration information may be in a text type, such as chinese characters, letters, etc., or in a numerical type, such as numbers. In a specific application scenario, the configuration information may carry various video-related information, such as a video ID, a video address, and the like. The video address indicates the position of the terminal in the video library, and the terminal can watch or download the corresponding video file through the video address. And the terminal acquires the configuration information corresponding to the video ID sent by the server, and can distinguish and identify the video file through the configuration information.
S12: and determining the position information of the video identification corresponding to each production line according to the video file and the display strategy of each production line.
The step S12 specifically includes: detecting whether a video identifier exists in a frame picture of a video file corresponding to the video ID; if the video identification does not exist, determining that the position information of the video identification corresponding to each production line is empty; if the video identification exists, acquiring the position coordinate of the video identification in a frame picture of a video file, comparing the video identification with identification pictures allowed by each production line one by one, and judging whether the video identification meets the display requirement of the production line, if so, determining that the position information of the video identification corresponding to the production line is empty, and if not, determining the position coordinate as the position information of the video identification corresponding to the production line.
In an alternative embodiment, the frame pictures are image pictures of each frame of the video file as it is played. The method comprises the steps of detecting whether a video identifier exists in a frame picture of a video file, firstly determining a detection area in the frame picture, in an optional embodiment, determining the detection area of the video identifier in a playing picture of the video file, in another optional embodiment, recording the positions of the video identifiers marked on the video file provided by each content provider in advance by a server, recording the detection areas where the video identifiers are located one by one, and when the video identifiers need to be detected, acquiring the detection areas of the video identifiers in the frame picture from the server. The detection area may be determined in pixel positions in the frame picture. Then, whether a video identifier exists in the frame picture is detected in the detection area, in an optional embodiment, whether the video identifier exists in the frame picture can be determined by matching the image content of the detection area with a preset template of the video identifier, and in another optional embodiment, the image content in the frame picture can be directly subjected to feature recognition in an image recognition mode, so as to determine whether the video identifier exists in the frame picture. As an alternative implementation, the image content in the frame picture may be directly subjected to feature recognition through a SIFT algorithm, so as to determine whether the video identifier exists in the frame picture.
SIFT algorithms are used to detect and describe local features in images, which find extreme points in spatial dimensions and extract their position, Scale, rotation invariants, published by David L owe in 1999, well-summarized in 2004, whose application range includes object recognition, robotic map perception and navigation, image stitching, 3D model building, gesture recognition, image tracking, and aspect ratios, etc. description and detection of local image features can help to recognize objects, SIFT features are based on some local appearance interest points on objects independent of image size and rotation.
And carrying out video identification detection on the frame picture, and further determining the position information of the video identification in the frame picture if the video identification is detected. As an optional implementation manner, SIFT feature points can be searched in a frame picture through a SIFT algorithm, wherein the SIFT feature points comprise edge points of the frame picture and corner points of a video identifier; and calculating the position coordinates of the video identifier according to the edge points of the frame picture and the corner points of the video identifier, wherein the parameters of the position coordinates comprise the distance from the top right corner vertex of the video identifier to the right edge and the top edge of the frame picture respectively, and the width and the length of the video identifier. Referring to fig. 5, the video identifier is located at the upper right corner of the frame picture, the location information of the video identifier can be represented by a quadruple of coordinates, which is denoted as pos (x, y, w, h), where x denotes the shortest distance from the top right corner vertex of the video identifier to the right edge of the frame picture, y denotes the shortest distance from the top right corner vertex of the video identifier to the top edge of the frame picture, w denotes the width of the video identifier, h denotes the length of the video identifier, and the units of x, y, w, and h are pixels.
In an alternative embodiment, the display strategy can be to allow the video identifier not to appear in the video playing picture and to allow information such as a television station logo, a live broadcast character and an advertisement L OGO which both meet the requirements of the central office of the radio and television and meet the requirements of the production line.
S13: and storing the video ID, the production line ID of the production line and the position information corresponding to the video identification.
And correspondingly storing the video ID, the production line ID and the position information into a media asset system as shown in table 1.
Table 1:
production line Video Location information
PL01 Video01 pos(0,0,0,0)
PL02 Video01 pos(x1,y1,w1,h1)
PL03 Video01 pos(x2,y2,w2,h2)
PL04 Video01 pos(0,0,0,0)
In an optional embodiment, each production line corresponds to its own mask picture, and the correspondence between the production line and the mask picture may be embodied by a mask configuration table, as shown in table 2. In one embodiment, the masking picture information may be a url pointing to the remote picture, and in another embodiment, the masking picture information may be a path pointing to the local picture.
Table 2:
production line Mask picture information
PL01 mask.logo1
PL02 mask.logo2
PL03 mask.logo3
Step two: receiving a playing operation instruction of a video file, and acquiring a video ID of the video file and a production line ID of a video client.
In an optional embodiment, when a user performs a play operation on a selected video file, the client receives a play operation instruction for the video file, and obtains video configuration information and production line configuration information of the selected video file, where the video configuration information may be a video ID of the video file, the production line configuration information is configured and stored in the client in advance, and the production line configuration information may be a production line ID, where the production line ID is used to identify television manufacturer information or television operator information.
Step three: and acquiring the position information of the video identifier in the frame picture of the video file according to the video ID and the production line ID.
The third step specifically comprises:
s31: a client generates a position information acquisition request carrying a video ID and a production line ID;
s32: the client sends the position information acquisition request to a server, the server inquires in a media resource system according to a video ID and a production line ID carried by the position information acquisition request to obtain corresponding position information, and the position information is returned to the client;
s33: and the client receives the position information searched and returned by the server according to the video ID and the production line ID.
Step four: judging whether the video identification needs to be shielded according to the position information, if so, acquiring a mask picture matched with the production line ID, and shielding the video identification according to the mask picture and the position information.
After receiving the location information returned by the server, the client determines whether the location information is null, in an optional embodiment, the location information is represented by a location coordinate, when the location coordinate is (0,0,0,0), the location information is null, otherwise, the location information is not null; in another optional embodiment, if the client does not receive the location information returned by the server, the location information returned by the server may be regarded as null, otherwise, the location information is not null. If the position information is judged to be null, the video identification does not exist in the video file or the video identification existing in the video file meets the production line requirement, so that the video identification does not need to be processed, and the video file can be directly played. If the position information is judged not to be null, the video identification exists in the video file and is not in line with the production requirement, and the video identification needs to be processed. In an alternative embodiment, the method of processing the video identity comprises the steps of:
s41: and acquiring a mask picture corresponding to the ID of the production line.
The method specifically comprises the following steps: the client generates a mask picture acquisition request carrying the ID of the production line; the client sends the mask picture acquisition request to a server so that the server can inquire in a mask configuration table according to the production line ID to obtain corresponding mask picture information and send the mask picture information to the client; and the client receives the mask picture information returned by the server and extracts the mask picture according to the mask picture information.
S42: and displaying the mask picture on a playing picture of the video client in an overlapping mode according to the position information, and blocking the video identifier in the frame picture of the video file.
When the video file is played on the client, the mask picture is overlapped and displayed on the playing picture of the video client, and the video identifier in the video file is covered by the mask picture, so that the video identifier of the original video file is not arranged on the playing picture watched by a video terminal user. Compared with the prior art for processing the video identification, the mode of shielding the video identification by the mask picture does not need to change the original video file, can ensure the quality of the video image, and realizes better playing effect at a television end.
In an alternative embodiment, between steps S41 and S42, the method further includes: and adjusting the size of the mask picture to be consistent with the size of the video identifier according to the position information. That is, the size of the mask picture is adjusted according to the position coordinates of the video identifier, for example, the width and the length of the video identifier can be taken as references, the width and the length of the mask picture and the video identifier are adjusted to be consistent, and the size of the mask picture can be adjusted according to the width and the length of the video identifier, so that the mask picture can just completely cover the video identifier. In step S42, the adjusted mask picture is displayed in an overlapping manner on the video identifier of the video file.
In an actual working environment, the sizes of various terminals are different, so that the problems of video frame lifting and scaling can be caused when a video is played, the mask picture needs to be correspondingly processed under the condition, otherwise, the mask picture is dislocated, and the video identification cannot be completely shielded.
As an optional implementation manner, when scaling the video frame, scaling the mask picture at the same time by an equal ratio, specifically includes the following steps:
1) the video client acquires the width and height of a terminal screen when starting, and the width and height are recorded as (w1, h 1);
2) when the video client plays the video, acquiring the width and the height of a video frame picture according to the ID of the video, and recording as (w2, h 2);
3) the video client calculates the scaling, w1/w2 ═ pw and h1/h2 ═ ph, pw and ph being the width and height scaling, respectively.
4) The video client scales the video frame picture according to pw or ph (or one of pw and ph); and simultaneously, the mask picture is zoomed according to pw or ph (alternatively, one of pw and ph), and the zooming proportion of the mask picture is consistent with that of the frame picture.
After the steps are processed, no matter what screen size is displayed on the terminal, the mask picture cannot be dislocated finally.
In an optional embodiment, step S42 is followed by: when the fact that the zooming operation is carried out on the playing picture of the video is detected, the zooming ratio of the playing picture of the video is obtained, and the mask picture is zoomed according to the zooming ratio.
The method comprises the steps that a user can adjust the size of a playing picture through zooming operation in the video playing process, when the client detects that the user performs zooming operation on the playing picture of the video, the client obtains the zooming ratio of the video playing picture, and the video picture and a mask picture are zoomed at the same time according to the zooming ratio. Therefore, the video identification can be completely shielded by the masking picture no matter how the size of the playing picture is changed.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments 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 mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
The embodiment provides a video identification processing device. As shown in fig. 6, the apparatus includes a response unit 20, a first acquisition unit 30, a judgment unit 40, a second acquisition unit 50, and a processing unit 60.
The response unit 20 is configured to receive a play operation instruction for a video file, and acquire a video ID of the video file and a production line ID of a video client, where the production line ID is used to identify television manufacturer information or television operator information;
a first obtaining unit 30, configured to obtain, according to the video ID and the production line ID, location information of a video identifier in a frame of the video file;
the judging unit 40 is used for judging whether the video identifier needs to be shielded according to the position information;
the second obtaining unit 50 is configured to obtain a mask picture matched with the production line ID when the determination result of the determining unit indicates that the video identifier needs to be masked;
and the processing unit 60 is configured to block the video identifier according to the mask picture and the position information.
In the video identifier processing apparatus of this embodiment, the response unit 20 is configured to execute step S201 in embodiment 1 of the present invention, the first acquiring unit 30 is configured to execute step S202 in embodiment 1 of the present invention, the judging unit 40 is configured to execute step S203 in embodiment 1 of the present invention, and the second acquiring unit 50 and the processing unit 60 are configured to execute step S204 in embodiment 1 of the present invention.
As an optional implementation manner, the processing unit 60 is specifically configured to: when the position information is not empty, in the playing process of the video file, the mask picture is displayed on the playing picture of the video client in a superposition mode according to the position information, and the video identification in the frame picture of the video file is shielded. The processing unit 60 comprises a first adjusting subunit 61, a processing subunit 62 and a second adjusting subunit 63:
a first adjusting subunit 61, configured to adjust the size of the mask picture to be consistent with the size of the video identifier according to the position information;
the processing subunit 62 is configured to display the mask picture on a playing picture of the video client in an overlapping manner according to the position information, and mask the video identifier in the frame picture of the video file;
the second adjusting subunit 63 is configured to, when it is detected that a zoom operation is performed on a playing picture of the video, obtain a zoom ratio of the playing picture of the video, and zoom the mask picture according to the zoom ratio.
As an alternative implementation, referring to fig. 7, the video identifier processing apparatus of this embodiment further includes a preprocessing unit 10, where the preprocessing unit 10 includes an obtaining subunit 11, a determining subunit 12, and a storing subunit.
An obtaining subunit 11, configured to obtain a video file and a video ID corresponding to the video file;
the determining subunit 12 is used for determining the position information of the video identifier corresponding to each production line according to the video file and the display strategy of each production line;
and the storage subunit 13 is configured to store the video ID, the production line ID of the production line, and corresponding position information.
As an alternative embodiment, the determining subunit 12 includes a detecting module 121, a first determining module 122 and a second determining module 123.
A detection module 121, configured to detect whether a video identifier exists in a frame picture of a video file;
the first determining module 122 is configured to determine that the position information of the video identifier corresponding to each production line is empty when the video identifier is not detected by the detecting module;
a second determining module 123, configured to, when the detection module does not detect the video identifier, obtain a position coordinate of the video identifier in a frame picture of the video file, compare the video identifier with identifier pictures allowed by each production line one by one, determine whether the video identifier meets a display requirement of the production line, if yes, determine that position information of the video identifier corresponding to the production line is empty, if not, determine the position coordinate as position information of the video identifier corresponding to the production line, where parameters of the position coordinate include a distance from a top right corner vertex of the video identifier to a right edge and a top edge of the frame picture, and a width and a length of the video identifier.
As an optional implementation, the first obtaining unit 30 includes a first generating subunit 31, a first sending subunit 32, and a first receiving subunit 33.
A first generating subunit 31, configured to generate a location information acquisition request carrying the video ID and the production line ID;
a first sending subunit 32, configured to send the location information obtaining request to a server;
and the first receiving subunit 33 is configured to receive the location information searched and returned by the server according to the video ID and the production line ID.
As an alternative embodiment, the second obtaining unit 50 includes a second generating subunit 51, a second sending subunit 52, a second receiving subunit 53, and a second extracting subunit 54.
A second generating subunit 51, configured to generate a mask picture obtaining request carrying the production line ID;
a second sending subunit 52, configured to send the mask picture obtaining request to a server;
the second receiving subunit 53 is configured to receive mask picture information searched and returned by the server according to the production line ID;
a second extracting sub-unit 54, configured to extract a mask picture according to the mask picture information.
The method comprises the steps of firstly configuring corresponding mask pictures according to the requirements of television manufacturers, television operators and license plate parties, and covering the video identifications by the mask pictures by detecting the positions of the video identifications in the videos, so that the requirements of the central office of radio and television are met, and the requirements of the television manufacturers and the television operators are also met; in addition, the mode of shielding the video identification by the mask picture does not need to change the original video file, the quality of the video image can be ensured, a better playing effect is realized at a television end, and the user experience is improved.
Example 4
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store program codes executed by a video identifier processing method of the foregoing embodiment.
Optionally, in this embodiment, the storage medium may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
the method comprises the steps that firstly, a playing operation instruction for a video file is received, and a video ID of the video file and a production line ID of a video client are obtained, wherein the production line ID is used for identifying television manufacturer information or television operator information;
secondly, acquiring position information of a video identifier in a frame picture of the video file according to the video ID and the production line ID;
thirdly, judging whether the video identification needs to be shielded or not according to the position information, if so, judging that the video identification needs to be shielded
And fourthly, obtaining a mask picture matched with the production line ID, and shielding the video identification according to the mask picture and the position information.
Optionally, the storage medium is further arranged to store program code for performing the steps of: when the acquired position information is not empty, in the playing process of the video file, the mask picture is displayed on the playing picture of the video client in a superposition mode according to the position information, and the video identification in the frame picture of the video file is shielded.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Example 5
The embodiment of the invention also provides a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
Alternatively, fig. 8 is a block diagram of a structure of a computer terminal according to an embodiment of the present invention. As shown in fig. 8, the computer terminal a may include: one or more processors 801 (only one of which is shown), a memory 803, and a transmission device 805.
The memory 803 may be used to store software programs and modules, such as program instructions/modules corresponding to the video identifier processing method and apparatus in the embodiments of the present invention, and the processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 803, so as to implement the video identifier processing method. The memory 803 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 803 may further include memory located remotely from the processor 801, which may be connected to the computer terminal a via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 805 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 805 includes a network adapter that can be connected to a router via a network cable to communicate with the internet or a local area network. In one example, the transmission device 805 is a radio frequency module, which is used for communicating with the internet in a wireless manner.
Specifically, the memory 803 is used for storing preset action conditions, information of preset authorized users, and application programs.
The processor 801 may call the information and applications stored in the memory 803 via the transmission device to perform the following steps:
the method comprises the steps that firstly, a playing operation instruction for a video file is received, and a video ID of the video file and a production line ID of a video client are obtained, wherein the production line ID is used for identifying television manufacturer information or television operator information;
secondly, acquiring position information of a video identifier in a frame picture of the video file according to the video ID and the production line ID;
thirdly, judging whether the video identification needs to be shielded or not according to the position information, if so, judging that the video identification needs to be shielded
And fourthly, obtaining a mask picture matched with the production line ID, and shielding the video identification according to the mask picture and the position information.
For specific examples in this embodiment, reference may be made to the examples described in embodiment 1 and embodiment 2, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be 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, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

Claims (13)

1. A method for video identity processing, comprising:
acquiring a video file and a video ID corresponding to the video file;
if the video identification exists in the frame picture of the video file, acquiring the position coordinate of the video identification in the frame picture of the video file, comparing the video identification with identification pictures allowed by a production line one by one, judging whether the video identification meets the display requirement of the production line, and if not, determining the position coordinate as the position information of the video identification corresponding to the production line;
storing the video ID, the production line ID of the production line and corresponding position information;
receiving a playing operation instruction of a video file, and acquiring a video ID of the video file and a production line ID of a video client, wherein the production line ID is used for identifying television manufacturer information or television operator information, and the television manufacturer information or the television operator information is video content acquirer information;
acquiring position information of a video identifier in a frame picture of the video file according to the video ID and the production line ID;
judging whether the video identification needs to be shielded or not according to the position information, if so, judging whether the video identification needs to be shielded or not
Obtaining a mask picture matched with the production line ID, and shielding the video identification according to the mask picture and the position information;
when the zoom operation of the playing picture of the video is detected, the zoom ratio of the playing picture of the video is obtained;
scaling the mask picture in an equal ratio according to the scaling; and after zooming, the position of the mask picture in the video playing picture is the same as that before zooming.
2. The method according to claim 1, wherein said blocking the video identifier according to the mask picture and the position information comprises:
if the position information is empty, the video identification is not shielded;
and if the position information is not null, in the playing process of the video file, displaying the mask picture on the playing picture of the video client in a superposition mode according to the position information, and blocking the video identifier in the frame picture of the video file.
3. The method according to claim 2, wherein the displaying the mask picture on the playing picture of the video client in an overlapping manner according to the position information, before blocking the video identifier in the frame picture of the video file, further comprises:
and adjusting the size of the mask picture to be consistent with the size of the video identifier according to the position information.
4. The method of claim 1, further comprising:
if the video identification does not exist in the frame picture of the video file, determining that the position information of the video identification corresponding to the production line is empty;
if the video identification does not meet the display requirement of the production line, determining that the position information of the video identification corresponding to the production line is empty;
the parameters of the position coordinates comprise the distance between the vertex at the upper right corner of the video identifier and the right edge and the upper edge of the frame picture respectively, and the width and the length of the video identifier.
5. The method according to claim 1, wherein the obtaining the position information of the video identifier in the frame of the video file according to the video ID and the production line ID comprises:
generating a position information acquisition request carrying the video ID and the production line ID;
sending the position information acquisition request to a server;
and receiving the position information searched and returned by the server according to the video ID and the production line ID.
6. The method of claim 1, wherein the obtaining the mask picture matching the production line ID comprises:
generating a mask picture acquisition request carrying the ID of the production line;
sending the mask picture acquisition request to a server;
receiving mask picture information searched and returned by the server according to the production line ID;
and extracting a mask picture according to the mask picture information.
7. A video identity processing apparatus, comprising:
the acquisition subunit is used for acquiring the video file and the video ID corresponding to the video file;
a determining subunit, configured to, if a video identifier exists in a frame picture of the video file, obtain a position coordinate of the video identifier in the frame picture of the video file, compare the video identifier with identifier pictures allowed by a production line one by one, determine whether the video identifier meets a display requirement of the production line, and if not, determine the position coordinate as position information that the video identifier corresponds to the production line;
the storage subunit is used for storing the video ID, the production line ID of the production line and corresponding position information;
the response unit is used for receiving a playing operation instruction of a video file, and acquiring a video ID of the video file and a production line ID of a video client, wherein the production line ID is used for identifying television manufacturer information or television operator information, and the television manufacturer information or the television operator information is video content acquirer information;
the first acquisition unit is used for acquiring the position information of the video identifier in the frame picture of the video file according to the video ID and the production line ID;
the judging unit is used for judging whether the video identification needs to be shielded or not according to the position information;
the second obtaining unit is used for obtaining a mask picture matched with the ID of the production line when the judgment result of the judging unit is that the video identification needs to be shielded;
the processing unit is used for shielding the video identification according to the mask picture and the position information; the processing unit comprises a second adjusting subunit, and the second adjusting subunit is used for acquiring the scaling of a video playing picture when the scaling operation of the playing picture of the video is detected, and scaling the mask picture in an equal ratio according to the scaling; and after zooming, the position of the mask picture in the video playing picture is the same as that before zooming.
8. The apparatus according to claim 7, wherein the processing unit is specifically configured to: when the position information is not empty, in the playing process of the video file, the mask picture is displayed on the playing picture of the video client in a superposition mode according to the position information, and the video identification in the frame picture of the video file is shielded.
9. The apparatus of claim 8, wherein the processing unit further comprises:
the first adjusting subunit is used for adjusting the size of the mask picture to be consistent with that of the video identifier according to the position information;
and the processing subunit is used for displaying the mask picture on a playing picture of the video client in a superposition manner according to the position information and blocking the video identifier in the frame picture of the video file.
10. The method of claim 7, wherein determining the sub-unit comprises:
the detection module is used for detecting whether a video identifier exists in a frame picture of the video file;
the first determining module is used for determining that the position information of the video identifier corresponding to each production line is empty when the detecting module does not detect the video identifier;
and the second determining module is used for acquiring the position coordinates of the video identifier in a frame picture of a video file when the video identifier is detected by the detecting module, comparing the video identifier with identifier pictures allowed by each production line one by one, judging whether the video identifier meets the display requirement of the production line, if so, determining that the position information of the video identifier corresponding to the production line is empty, otherwise, determining the position coordinates as the position information of the video identifier corresponding to the production line, wherein the parameters of the position coordinates comprise the distance from the top right corner vertex of the video identifier to the right edge and the top edge of the frame picture, and the width and the length of the video identifier.
11. The apparatus of claim 7, wherein the first obtaining unit comprises:
the first generation subunit is used for generating a position information acquisition request carrying the video ID and the production line ID;
the first sending subunit is used for sending the position information acquisition request to a server;
and the first receiving subunit is used for receiving the position information searched and returned by the server according to the video ID and the production line ID.
12. The apparatus of claim 7, wherein the second obtaining unit comprises:
the second generation subunit is used for generating a mask picture acquisition request carrying the production line ID;
the second sending subunit is used for sending the mask picture obtaining request to a server;
the second receiving subunit is used for receiving the mask picture information searched and returned by the server according to the production line ID;
and the second extraction subunit is used for extracting the mask picture according to the mask picture information.
13. A computer-readable storage medium, characterized in that the storage medium has stored therein a program which is loaded and executed by a processor to implement the video identification processing method according to any one of claims 1 to 6.
CN201611088673.2A 2016-12-01 2016-12-01 Video identification processing method and device and computer readable storage medium Active CN106792153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611088673.2A CN106792153B (en) 2016-12-01 2016-12-01 Video identification processing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611088673.2A CN106792153B (en) 2016-12-01 2016-12-01 Video identification processing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN106792153A CN106792153A (en) 2017-05-31
CN106792153B true CN106792153B (en) 2020-07-28

Family

ID=58915211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611088673.2A Active CN106792153B (en) 2016-12-01 2016-12-01 Video identification processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN106792153B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324704A (en) * 2018-03-29 2019-10-11 优酷网络技术(北京)有限公司 Method for processing video frequency and device
CN109660870B (en) * 2018-12-04 2020-12-25 北京奇艺世纪科技有限公司 Video masking method, device and equipment
CN110766774B (en) * 2019-11-06 2022-11-25 武汉艺画开天文化传播有限公司 Label adding method and system for Maya
CN111010606B (en) * 2019-12-12 2022-02-15 北京金山云网络技术有限公司 Video processing method and device
CN111597885A (en) * 2020-04-07 2020-08-28 上海推乐信息技术服务有限公司 Video additional content detection method and system
CN112423090A (en) * 2020-11-20 2021-02-26 广州欢网科技有限责任公司 Video watermark automatic covering method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004086751A2 (en) * 2003-03-27 2004-10-07 Sergei Startchik Method for estimating logo visibility and exposure in video
CN102103456A (en) * 2009-12-18 2011-06-22 联想(北京)有限公司 Method and device for showing elements in window
CN105872591A (en) * 2016-04-22 2016-08-17 北京小米移动软件有限公司 Icon covering method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153885A1 (en) * 2005-12-29 2010-06-17 Rovi Technologies Corporation Systems and methods for interacting with advanced displays provided by an interactive media guidance application
CN105025361B (en) * 2015-07-29 2018-07-17 西安交通大学 A kind of real-time station symbol removing method
CN105611380A (en) * 2015-12-23 2016-05-25 小米科技有限责任公司 Video image processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004086751A2 (en) * 2003-03-27 2004-10-07 Sergei Startchik Method for estimating logo visibility and exposure in video
CN102103456A (en) * 2009-12-18 2011-06-22 联想(北京)有限公司 Method and device for showing elements in window
CN105872591A (en) * 2016-04-22 2016-08-17 北京小米移动软件有限公司 Icon covering method and device

Also Published As

Publication number Publication date
CN106792153A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106792153B (en) Video identification processing method and device and computer readable storage medium
CN108737882B (en) Image display method, image display device, storage medium and electronic device
US11450044B2 (en) Creating and displaying multi-layered augemented reality
US11551424B2 (en) Interaction analysis systems and methods
CN103079092B (en) Obtain the method and apparatus of people information in video
CN107918884A (en) A kind of control method, apparatus and system that advertisement pushing is realized based on user behavior
CN109698914B (en) Lightning special effect rendering method, device, equipment and storage medium
CN110149551B (en) Media file playing method and device, storage medium and electronic device
US11748955B2 (en) Network-based spatial computing for extended reality (XR) applications
CN104703020A (en) Processing method and device of quick response codes, video playing apparatus
CN105447534A (en) Imaged-based information presenting method and device
CN105159923A (en) Video image based article extraction, query and purchasing method
CN108037904B (en) Visual data pushing method and system
JPWO2014207892A1 (en) Information processing apparatus, information processing method, and program for information processing apparatus
CN110599525A (en) Image compensation method and apparatus, storage medium, and electronic apparatus
CN106254953B (en) A kind of image display method and device, picture receive terminal
CN106846351B (en) Image processing method and client
CN105631938B (en) Image processing method and electronic equipment
CN114418665A (en) Virtual display method, device, equipment and medium for mall products in home scene
KR20150027334A (en) Method and system for providing augmented reality
CN110796136B (en) Mark and image processing method and related device
KR101260817B1 (en) Method for enhancing feature points of digital contents for supporting robust detection and tracking, and computer readable recording medium for the same
KR20120076541A (en) Advertising method using augmented reality coder and system thereof
CN205158392U (en) Article identification system of developments image
KR101612000B1 (en) System for purchasing advertisement object based on logotional advertisement using movement of purview cursor area in mobile smart terminal

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