Detect the method and apparatus of duplicate contents in the TV signal
Technical field
The present invention relates to a kind of method and apparatus that detects duplicate contents in the TV signal.
Background technology
A lot of TV programme often are flooded with by many commercial advertisements now, particularly in the middle of the program of some hot broadcasts, often have a lot of advertisements.TV station's advertisement playing generally has repeatability, and an advertisement is often play several times even tens times.
The user generally can only watch these advertisements under compulsion, or converts the program of temporarily watching other into, and this tends to cause the user ceaselessly to change platform, and these advertisements have had a strong impact on the continuity of user's watch programs, have reduced spectator's user experience.
Summary of the invention
The invention provides the method and apparatus of duplicate contents in a kind of detection TV signal that can overcome the above problems.
In first aspect, a kind of method that detects duplicate contents in the TV signal is provided, this method may further comprise the steps: the central area of TV signal is equally divided into 4 big zones of 2*2, and 4 big zones are divided into 8*8 amount to 64 zonules; Every picture group picture in set time extraction and storage of real time TV signal is at the characteristic information of YCbCr color space; One picture group looks like to comprise a frame key images and 16 frame normal image; Wherein the characteristic information of key images comprises Y, Cb, the arithmetic average value information of Cr of arithmetic average value information and 64 zonules of Y, Cb, the Cr in Y, the Cb of whole central area, the arithmetic average value information of Cr, 4 big zones, and the characteristic information of 16 normal image is the arithmetic average value information of the Y that repeatedly from 4 big zones, selects a zonule at random and not respectively, Cb, Cr; The characteristic information of the key images of image to be determined group is compared and judges whether both are identical with the characteristic information of the key images of image stored group, if different, then would be non-duplicate contents; Otherwise, the characteristic information of 16 normal image of image to be determined group and the characteristic information of 16 normal image of image stored group are compared, if having at least 62 zonules identical, then be duplicate contents, otherwise be non-duplicate contents.
In second aspect, a kind of device that detects duplicate contents in the TV signal is provided, this device comprises: division module, the central area that is used for TV signal is equally divided into 4 big zones of 2*2, and 4 big zones are divided into 8*8 amount to 64 zonules; Characteristic information extracting module; Be used for the characteristic information of a picture group picture of every separated set time extraction and storage of real time TV signal at the YCbCr color space; One picture group looks like to comprise a frame key images and 16 frame normal image; Wherein the characteristic information of key images comprises Y, Cb, the arithmetic average value information of Cr of arithmetic average value information and 64 zonules of Y, Cb, the Cr in Y, the Cb of whole central area, the arithmetic average value information of Cr, 4 big zones, and the characteristic information of 16 normal image is the arithmetic average value information of the Y that repeatedly from 4 big zones, selects a zonule at random and not respectively, Cb, Cr; First comparison module is used for the characteristic information of the key images of image to be determined group is compared and judges whether both are identical with the characteristic information of the key images of image stored group, if different, then would be non-duplicate contents; Second comparison module; Be used for when the comparative result of first comparison module for not the time; The characteristic information of 16 normal image of image to be determined group and the characteristic information of 16 normal image of image stored group are compared; If have at least 62 zonules identical, then be duplicate contents, otherwise be non-duplicate contents.
The above embodiment of the present invention detects through the content to the real-time television signal; When being judged to be duplicate contents; Can be used to point out the user watch programs for basic TV, the TV or the STB that also can be used to have recording function directly remove advertisement, reduce memory contents; Save memory space, help watching continuously of content simultaneously.TV station's advertisement playing often has repeatability, and an advertisement is often play several times even tens times, like this, just can detect advertisement through the method that detects repetition.Same reason because TV station often repeats to put some TV plays, detects repeated content, also can in TV with recording function or STB video process, remove repeated content, helps saving storage.
Description of drawings
Below with reference to accompanying drawings specific embodiments of the present invention is explained in more detail, in the accompanying drawings:
Fig. 1 is a TV signal Region Segmentation sketch map according to an embodiment of the invention;
Fig. 2 is the flow chart that detects duplicate contents in the TV signal according to an embodiment of the invention.
Embodiment
One embodiment of the present of invention can be divided into two parts: whether the key message of stored television signal and detection signal content repeat.
First is the storage key message, is used for extracting the follow-up identified information that can be used for of the every frame of in progress TV.As shown in Figure 1; The large-scale square frame of Fig. 1 is the zone of TV signal; The marginal portion up and down of TV signal is not used in detection; Each bar limit, marginal portion can be set in the 5%-15% of TV signal own as required, that is to say that the length and width of core account for the 70%-90% of TV signal length and width respectively.The central area is equally divided into 8*8 and amounts to 64 zonules.During information extraction, video image every, carry out characteristic value and extract and store at a distance from fixed interval T (as 1 second) extraction one two field picture.These frames are divided into 1 group with continuous per 17 frames, and are divided into key frame and normal frames, and every group first frame is a key frame, and back 16 frames are non-key frame.For key frame, we store all 64 information that the zonule is whole.The arithmetic mean
of the information of each zonule Y that to be all pixels of one's respective area calculate with the YCbCr color space, Cb, Cr is for key frame; We also need calculate upper left (A district), upper right (B district), the left side average value information in (C district), four zones, bottom right (D district) down; And the average value information in whole big zone; Wherein, The average value information in whole big zone is not stored with
these three variablees; But three values are stored and are sorted with
; Wherein
is first keyword of ordering;
is second keyword of ordering,
be the 3rd keyword of ordering.And for non-key frame; Only each selects
of a zonule but can not repeat in 16 selected zones of non-key frame every frame at random in four zones of ABCD, and for example table 1 is exactly a possible selection.
Whether second portion is to detect to repeat; As shown in Figure 2; For each frame; At first
of computing whole central area whether to have stored key frame with the first step identical; Because the storage of
is the storage of ordering; So can comparatively fast accomplish and search; Whole
with wait to judge the identical frame of frame among; Whether
that detects 4 regional ABCD again be identical; As exist 4 zones
all with the frame of waiting to judge that frame is identical;
that then these frames is detected 64 zonules whether with judge frame have greater than 62 identical, if do not exist then judge that this frame is not a duplicate contents.Stored key frame X if exist; Then follow-up every compare with 16 non-key frame canned datas with one group of key frame X at a distance from the T time; 4 zonules of every frame contrast storage if in the comparison process of this 16 frame, there is the same area more than 62, judge that then the content of playing at present is a duplicate contents; Otherwise, be judged to be not duplicate contents.
Table 1
Frame number |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
The A district |
A11 |
A12 |
A13 |
A14 |
A21 |
A22 |
A23 |
A24 |
The B district |
B22 |
B23 |
B24 |
B21 |
B32 |
B33 |
B34 |
B31 |
The C district |
C33 |
C34 |
C31 |
C32 |
C43 |
C44 |
C41 |
C42 |
The D district |
D44 |
D41 |
D42 |
D43 |
D14 |
D11 |
D12 |
D13 |
Frame number |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
The A district |
A31 |
A32 |
A33 |
A34 |
A41 |
A42 |
A43 |
A44 |
The B district |
B42 |
B43 |
B44 |
B41 |
B12 |
B13 |
B14 |
B31 |
The C district |
C13 |
C14 |
C11 |
C12 |
C23 |
C24 |
C21 |
C22 |
The D district |
D24 |
D21 |
D22 |
D23 |
D34 |
D31 |
D32 |
D33 |
When being judged to be duplicate contents; Can be used to point out the user watch programs for basic TV, the TV or the STB that also can be used to have recording function directly remove advertisement, reduce memory contents; Save memory space, help watching continuously of content simultaneously.TV station's advertisement playing often has repeatability, and an advertisement is often play several times even tens times, like this, just can detect advertisement through the method that detects repetition.Same reason because TV station often repeats to put some TV plays, detects repeated content, also can in TV with recording function or STB video process, remove repeated content, helps saving storage.
Obviously, under the prerequisite that does not depart from true spirit of the present invention and scope, the present invention described here can have many variations.Therefore, the change that all it will be apparent to those skilled in the art that all should be included within the scope that these claims contain.The present invention's scope required for protection is only limited described claims.