CN101576955B - Method and system for detecting advertisement in audio/video - Google Patents
Method and system for detecting advertisement in audio/video Download PDFInfo
- Publication number
- CN101576955B CN101576955B CN2009100874283A CN200910087428A CN101576955B CN 101576955 B CN101576955 B CN 101576955B CN 2009100874283 A CN2009100874283 A CN 2009100874283A CN 200910087428 A CN200910087428 A CN 200910087428A CN 101576955 B CN101576955 B CN 101576955B
- Authority
- CN
- China
- Prior art keywords
- energy
- frame
- audio frequency
- envelope sequence
- advertisement
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 239000012634 fragment Substances 0.000 claims description 34
- 238000012545 processing Methods 0.000 claims description 24
- 238000009499 grossing Methods 0.000 claims description 23
- 230000000630 rising effect Effects 0.000 claims description 21
- 238000009432 framing Methods 0.000 claims description 19
- 238000000605 extraction Methods 0.000 claims description 10
- 239000000284 extract Substances 0.000 claims description 8
- 230000001143 conditioned effect Effects 0.000 claims description 6
- 230000000875 corresponding effect Effects 0.000 description 29
- 238000001514 detection method Methods 0.000 description 17
- 238000002474 experimental method Methods 0.000 description 10
- 230000008878 coupling Effects 0.000 description 6
- 238000010168 coupling process Methods 0.000 description 6
- 238000005859 coupling reaction Methods 0.000 description 6
- 238000005457 optimization Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000010008 shearing Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention relates to a method and a system for detecting advertisement in an audio/video. The method comprises the following steps of: step 1, extracting audio frequency from the audio/video to bedetected, and extracting short-time energy of frames and Mel frequency cepstrum coefficient characteristic; and step 2, searching and finding two groups of frames, which have mutual similarity meetin g a predetermined condition, from the audio frequency according to the short-time energy of the frames and the Mel frequency cepstrum coefficient characteristic, the positions of the frames in each group are continuous in the audio frequency, and a corresponding audio/video segment of each group of frames in the audio/video to be detected is the advertisement. Compared with the prior art, the method and the system can more accurately and efficiently detect an advertisement segment in the audio/video.
Description
Technical field
The present invention relates to the detection range of audio frequency and video, particularly relate to the method and system that from audio frequency and video, detect advertisement.
Background technology
Purposes of commercial detection is meant in video, audio program the position that location and mark advertisement are occurred.Automatically purposes of commercial detection is exactly to utilize computing machine automatically from looking, detect advertising segment the sound stream and accurately locating the position of this advertising segment.
The method of at present common automatic purposes of commercial detection comprises rule-based method, based on the method for sign, based on the method for shot classification, based on the method for identification.
Rule-based method uses a series of feature and rule to distinguish advertisement and common broadcast TV program, and common broadcast TV program is non-advertisement.Usually advertisement all is appearance in groups, and every group of advertisement is called as advertisement group.Advertisement and advertisement group have direct measurement feature and weigh feature indirectly.The direct measurement feature of advertisement and advertisement group comprises: length limited, and the length of a common advertisement is no more than 30 seconds, and advertisement group is no more than 6 minutes; Usually separated by 3 to 5 black frames between advertisement and the non-advertising programme and between advertisement and the advertisement; The volume of advertisement is giving great volume than TV programme generally.The indirect measurement feature of advertisement and advertisement group comprises: advertisement has usually than non-advertising programme and has higher camera lens switching frequency and have more abundant variation on color; It often is a name that static image comes exhibiting product or company that advertisement comprises many static images, particularly last scene.The problem of rule-based method comprises: the program for all categories finds unified rule to have difficulties; The feature of selected expression advertisement is stable inadequately and reliable sometimes; Be difficult to set up unified detection system by those features.For example, a lot of rule-based methods detect advertisement according to black frame, but a lot of TV station has not used black frame now, and the program as the film also may contain many black frames.And not necessarily have black frame during the conversion of general programs fragment and advertising segment, even black frame also can need at random insertion for certain montage, above-mentioned situation directly causes the failure based on black frame detection method.Therefore, rule-based method mainly concentrates on and detects some characteristics kind program, as news program, in advertisement.
Based on the method for sign, the station symbol by TV station detects advertisement.Whether this method can adopt the method detection station symbol of rim detection to exist according to conceal the existence that station symbol detects advertisement automatically when TV station breaks for commercialsy.The problem of this method is that at present a lot of TV stations do not conceal station symbol when breaking for commercialsy, and this phenomenon is more and more, so this method that detects advertisement by station symbol had just lost efficacy.For example, the relevant regulations of China national General Bureau of Radio, Film and Television explicitly calls for all advertisement necessity to have station symbol.In addition, the station symbol of TV station becomes and becomes increasingly complex at present, and station symbol is translucent sometimes, detects to get up to have difficulties.
Based on the method for shot classification, be camera lens with video slicing, and from camera lens, extract correlated characteristic, utilize these features that television cameras are divided into general programs camera lens and advertisement camera lens then.But the just simple usually classification of this method does not have to consider how to eliminate the influence of wrong story board, does not have to consider how to merge the problem that the advertisement camera lens obtains advertising segment simultaneously yet.The problem of this method maximum is, the difference on the feature of do not exist between non-advertising programme and the advertisement significantly, determining, so this kind method is difficult to all programs are reached the performance of very high detection.In addition,, but when detecting the blanking camera lens or being fade-in fade-out camera lens, will run into some problems, cause the testing result mistake even said method has good effect aspect the detection shearing lens.
Method based on identification requires that a large and complete advertising database is arranged in advance, and the feature of the predefined advertising programme fragment of this ad data library storage utilizes this database identification to be embedded in the advertising segment of TV programme the inside then.Yet the shortcoming of this method is that the database that comprises mass advertising obtains difficulty, if will expend huge human and material resources with manually intercepting and marking from program.And this method can not detect non-existent advertising segment in the database.In addition, the increase detection efficiency along with the database scale can descend.
The data that above-mentioned the whole bag of tricks is handled are video datas, because video itself, the data volume of the required processing of above-mentioned the whole bag of tricks is big, feature complexity height, so computing velocity is slow.
Summary of the invention
In order to solve above-mentioned technical matters, the invention provides from audio frequency and video the method and system that detect advertisement, can detect advertising segment in the video/audio more accurately and efficiently than prior art.
The invention discloses the method that detects advertisement from audio frequency and video, described method comprises:
Step 1 is extracted audio frequency from audio frequency and video to be detected, extract the short-time energy and the Mei Er cepstrum coefficient feature of frame from audio frequency;
Step 2, from described audio frequency, find out mutual similarity according to the short-time energy of frame and Mei Er cepstrum coefficient feature and satisfy two pre-conditioned framings, frame position in described audio frequency in every group of inside is continuous, and every framing corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
Described step 2 further is:
Step 21 is divided into the energy envelope unit according to the short-time energy of frame with described audio frequency;
Step 22, find out two groups of position Continuous Energy envelope unit that mutual energy envelope shape similarity satisfies preset shape similarity condition according to the short-time energy of frame and the length of energy envelope unit from described energy envelope unit, the energy envelope sequence is formed in every group of energy envelope unit;
Step 23, judge according to the Mei Er cepstrum coefficient feature of frame in the energy envelope sequence whether the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, if satisfy, then described energy envelope sequence corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
When the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also comprise after the described step 23:
Step 31, for two groups of energy envelope sequences that satisfy semantic similarity condition frame before the start frame separately, judge successively whether the semantic similarity between the corresponding frame satisfies described semantic similarity condition, first frame next frame in audio frequency that does not satisfy described semantic similarity condition is the reference position of advertisement.
When the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also comprise after the described step 23:
Step 41, for two groups of energy envelope sequences that satisfy semantic similarity condition frame after the end frame separately, judge successively whether the semantic similarity between the corresponding frame satisfies described semantic similarity condition, first frame previous frame in audio frequency that does not satisfy described semantic similarity condition is the end position of advertisement.
Described step 1 also comprises,
Step 51 is carried out smoothing processing to the short-time energy of frame, with the short-time energy of the short-time energy after the smoothing processing as frame.
Described step 21 further is,
Step 61 according to the short-time energy of frame, will be positioned at energy trace rising edge and energy ascensional range and surpass the division points of the frame of default range value as the energy envelope unit;
Step 62 is divided into the energy envelope unit from described division points with audio frequency.
Described step 22 further is,
Step 71, from described energy envelope unit, find out the continuous energy envelope unit, two groups of positions that satisfies length similarity condition, the candidate energies envelope sequence is formed in every group of energy envelope unit, and the difference of the length of the energy envelope unit of same position was less than the preset length difference between described length similarity condition was every group;
Step 72, judge that according to the short-time energy of frame in the described candidate energies envelope sequence whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than the energy jump degree of correlation threshold values of presetting, if then described candidate energies envelope sequence is described energy envelope sequence.
Described step 23 further is,
Step 81 is calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence;
Step 82, judge Euclidean distance less than the number of the frame of predeterminable range threshold values whether greater than default quantity threshold values, if the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
Described step 61 further is,
Step 91, for each frame in the audio frequency, whether the short-time energy of judging described frame is less than the short-time energy of the next frame of described frame, if then described framing bit is in the energy trace rising edge;
Step 92 for the frame that is positioned at the energy trace rising edge, is calculated as follows the energy ascensional range of described frame,
Wherein, DF is the energy ascensional range of described frame, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value;
If DF is greater than described default range value, then described frame is as the division points of energy envelope.
Also comprise between described step 71 and the described step 72,
Step 101, whether the length of judging described candidate energies envelope sequence is more than or equal to default advertisement length threshold values, if carry out described step 72.
Described step 72 further is,
Step 111 is calculated as follows the energy ascensional range of frame in the described candidate energies envelope sequence,
Wherein, DF is the energy ascensional range of frame in the described candidate energies envelope sequence, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value;
Step 112, calculate the energy jump degree degree of correlation between described candidate energies envelope sequence according to the energy ascensional range of described frame, if the energy jump degree of correlation between described candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values, then described candidate energies envelope sequence is described energy envelope sequence.
Described step 81 further is,
Step 121, the i frame of first energy envelope sequence is with the i+e frame correspondence of second energy envelope sequence, and e is an integer, and span is default scope;
Step 122, the different values of corresponding e are calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence, and the Euclidean distance that the peek of corresponding identical e is calculated is formed an Euclidean distance group;
Described step 82 further is,
Step 123 for each Euclidean distance group, is calculated wherein numerical value less than the number of the Euclidean distance of predeterminable range threshold values, gets the individual numerical value of individual numerical value maximum in all Euclidean distance groups as described energy envelope sequence;
Whether step 124, the individual numerical value of judging described energy envelope sequence greater than default quantity threshold values, if greater than, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
The invention also discloses the system that detects advertisement from audio frequency and video, described system comprises:
Parameter extraction module is used for extracting audio frequency from audio frequency and video to be detected, extracts the short-time energy and the Mei Er cepstrum coefficient feature of frame from audio frequency;
Module is searched in advertisement, be used for finding out mutual similarity from described audio frequency and satisfy two pre-conditioned framings according to the short-time energy of frame and Mei Er cepstrum coefficient feature, the frame of every group of inside position in described audio frequency is continuous, and every framing corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
Described advertisement is searched module and is further comprised:
The dividing elements module is used for according to the short-time energy of frame described audio frequency being divided into the energy envelope unit;
The similar module of searching of shape, be used for finding out two groups of position Continuous Energy envelope unit that mutual energy envelope shape similarity satisfies preset shape similarity condition from described energy envelope unit according to the short-time energy of frame and the length of energy envelope unit, the energy envelope sequence is formed in every group of energy envelope unit;
The semantic similar module of searching, be used for judging according to the Mei Er cepstrum coefficient feature of energy envelope sequence frame whether the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, if satisfy, then described energy envelope sequence corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
The similar module of searching of described semanteme, when the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also be used for for the frame before every group of energy envelope sequence start frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame next frame in audio frequency that does not satisfy described semantic similarity condition is the reference position of advertisement.
The similar module of searching of described semanteme, when the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also be used for for the frame after every group of energy envelope EOS frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame previous frame in audio frequency that does not satisfy described semantic similarity condition is the end position of advertisement.
Described parameter extraction module also is used for smoothing processing is carried out in the short-time energy of frame, with the short-time energy of the short-time energy after the smoothing processing as frame.
Described dividing elements module is further used for the short-time energy according to frame, will be positioned at energy trace rising edge and energy ascensional range and surpass the division points of the frame of default range value as the energy envelope unit; From described division points audio frequency is divided into the energy envelope unit.
The similar module of searching of described shape is further used for finding out the continuous energy envelope unit, two groups of positions that satisfies length similarity condition from described energy envelope unit, the candidate energies envelope sequence is formed in every group of energy envelope unit, and the difference of the length of the energy envelope unit of same position was less than the preset length difference between described length similarity condition was every group; Judge that according to the short-time energy of frame in the described candidate energies envelope sequence whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than the energy jump degree of correlation threshold values of presetting, if then described candidate energies envelope sequence is described energy envelope sequence.
Described semanteme is similar searches the Euclidean distance that module is further used for calculating the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence; Judge Euclidean distance less than the number of the frame of predeterminable range threshold values whether greater than default quantity threshold values, if the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
Described dividing elements module is further used in the short-time energy according to frame, in the time of will being positioned at frame that energy trace rising edge and energy ascensional range surpass default range value as the division points of energy envelope unit,
Be further used for for each frame in the audio frequency, whether the short-time energy of judging described frame is less than the short-time energy of the next frame of described frame, if then described framing bit is in the energy trace rising edge; For the frame that is positioned at the energy trace rising edge, be calculated as follows the energy ascensional range of described frame,
Wherein, DF is the energy ascensional range of described frame, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value; If DF is greater than described default range value, then described frame is as the division points of energy envelope.
The similar module of searching of described shape is used to also judge that whether the length of described candidate energies envelope sequence is more than or equal to default advertisement length threshold values, if the short-time energy of then carrying out frame in the described candidate energies envelope sequence of described foundation judges that whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values.
Described shape is similar searches module and is judging the energy jump degree of correlation between the candidate energies envelope sequence according to the short-time energy of frame in the described candidate energies envelope sequence whether during greater than the energy jump degree of correlation threshold values preset,
Be further used for being calculated as follows the energy ascensional range of frame in the described candidate energies envelope sequence,
Wherein, DF is the energy ascensional range of frame in the described candidate energies envelope sequence, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value; Calculate the energy jump degree degree of correlation between described candidate energies envelope sequence according to the energy ascensional range of described frame, if the energy jump degree of correlation between described candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values, then described candidate energies envelope sequence is described energy envelope sequence.
The similar module of searching of described semanteme is when the Euclidean distance of the Mei Er cepstrum coefficient that calculates every pair of corresponding interframe between described energy envelope sequence, be further used for i+e frame correspondence with same second the energy envelope sequence of i frame of first energy envelope sequence, e is an integer, and span is default scope; The different values of corresponding e are calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence, and the Euclidean distance that the peek of corresponding identical e is calculated is formed an Euclidean distance group;
Described semanteme is similar to be searched module and is judging Euclidean distance less than the number of the frame of predeterminable range threshold values whether during greater than default quantity threshold values,
Be further used for for each Euclidean distance group, calculate wherein numerical value, get the individual numerical value of individual numerical value maximum in all Euclidean distance groups as described energy envelope sequence less than the number of the Euclidean distance of predeterminable range threshold values; Whether the individual numerical value of judging described energy envelope sequence greater than default quantity threshold values, if greater than, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
Beneficial effect of the present invention is, by fall general coefficient characteristics according to the short-time energy of the audio frequency of audio frequency and video to be measured and Mei Er, search advertising segment in the audio frequency and video by similarity, can only just can find advertisement in the audio frequency and video to audio operation, and then raising detection speed, use audio frequency short-time energy and Mei Er and fall general coefficient characteristics and determine similarity, improve detection accuracy; Further, search similar fragment by dividing the energy envelope unit and carrying out the comparison of envelope shape similarity and semantic similarity, can more accurate compared pieces similarity; And can accurately determine the advertising segment reference position according to semantic similarity.
Description of drawings
Fig. 1 is the present invention detects advertisement from audio frequency and video a method flow diagram;
Fig. 2 is the present invention detects advertisement from audio frequency and video a system construction drawing.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Step S100 extracts audio frequency from audio frequency and video to be detected, extract the short-time energy and MFCC (Mei Er cepstrum coefficient) feature of frame from audio frequency.
Step S200, from described audio frequency, find out mutual similarity according to the short-time energy of frame and MFCC feature and satisfy two pre-conditioned framings, frame position in described audio frequency in every group of inside is continuous, and every framing corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
The embodiment of described step S100 is as described below.
Short-time energy is the energy of a short section of voice signal, is field of voice signal feature commonly used.
The MFCC feature is the common feature in speech recognition and Speaker Identification field, MFCC is characterized as and utilizes the spectral filtering that the triangular filter group obtains through Fourier transform voice signal and get, and its frequency domain is carried out obtaining behind Mei Er (Mel) change of scale, more to meet human auditory properties.
Multiple computing method to short-time energy are arranged in the prior art, in the specific embodiment of the invention computing method of the short-time energy of every frame as shown in the formula.
Wherein, STN
nRepresent the short-time energy of n frame, n is the sequence number of frame in audio frequency, and x (m) is a voice signal, and w (m) is a window function, and N is the hits of a frame.
In order to eliminate the influence of factors such as noise, smoothing processing is carried out in short-time energy.One is satisfied ∫ θ (x) dx=1, and at infinity converges to 0 real function θ (x) and be called smooth function.
Energy after level and smooth is:
STEN(x)=STE(x)×θ(x)
θ (x) is a smooth function, and this function satisfies ∫ θ (x) d x=1, and at infinity converges to 0 real function.STEN (x) is level and smooth short-time energy, and x is a sound signal.
The method of extracting the MFCC feature in the specific embodiment of the invention is following.
Step S111 is converted to Mei Er (Mel) frequency according to formula Mel (f)=2595lg (1+f/700) with actual frequency, and wherein the f of sound signal is frequency (wherein f is the frequency of voice signal).
Step S112, according to sound signal | X
n(k) | ask the output of each triangular filter:
Wherein
O (l), c (l), h (l) are respectively lower limit, center, the upper limiting frequency of triangular filter, and c (l)=h (l-1)=o (l+1).X
n(k) be the data from the sample survey of audio frequency, k is a sampled point, the output of l wave filter of m (l) expression, and l is the sampling serial number.
Step S113 does the logarithm computing to all wave filter output, further does discrete cosine (DCT) conversion again, obtains the MFCC feature:
Wherein, L is the wave filter number, C
Mfcc(i) i parameter of expression MFCC feature
The embodiment of described step S200 is as described below, comprises that step S210 is to step S230.
Step S210 is divided into the energy envelope unit according to the short-time energy of frame with described audio frequency.
According to the short-time energy of frame, will be positioned at energy trace rising edge and energy ascensional range and surpass the division points of the frame of default range value as the energy envelope unit; From described division points audio frequency is divided into the energy envelope unit.
Embodiment is as follows.
Be calculated as follows the Slope functional value of frame.
Slope
k=(STEN
k+1-STEN
k)/2
K is frame sequence number in audio frequency, and STEN is the short-time energy after the smoothing processing of frame.
By the DF functional value of following formula 1 calculating frame, DF is corresponding to the energy ascensional range of frame.
Wherein, DF is the energy ascensional range of described frame, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value, and for example default m is 10.
The division of energy envelope is according to being, DF>T and Slope>0, and T is default range value, can adjust the granularity of division of energy envelope by the preset value of adjusting T, is that 1.25 o'clock granularity of division helps retrieve advertisements and handles according to experiment statistics experience T value.Slope>0 this frame of expression is in the rising edge of energy trace, and DF>T represents that the energy jump degree satisfies the default division requirement of energy envelope.
Step S220, find out two groups of position Continuous Energy envelope unit that mutual energy envelope shape similarity satisfies preset shape similarity condition according to the short-time energy of frame and the length of energy envelope unit from described energy envelope unit, the energy envelope sequence is formed in every group of energy envelope unit.
From audio frequency, find similar energy envelope unit sequence by this step according to the similarity degree of shape, and then the object of definite semantic similarity judgement, because it is more complicated that semantic similarity calculates, thereby it is more quicker than direct application semantics similarity judgement similarity degree to increase this step; And, be similar to Du Genggao between two groups of definite energy envelope unit sequences owing to increased the judgement of shape similarity, it is more accurate to judge.
The embodiment of described step S220 is as follows.
Step S221, from the energy envelope unit, find out the continuous energy envelope unit, two groups of positions that satisfies length similarity condition, the candidate energies envelope sequence is formed in every group of energy envelope unit, and the difference of the length of the energy envelope unit of same position was less than the preset length difference between length similarity condition was every group.
The length of energy envelope unit is the quantity of frame in the energy envelope unit, d
iThe length of representing i energy envelope unit.In all energy envelope unit after division, find i energy envelope unit and j energy envelope unit, i<j, if satisfy | d
j-d
i|≤T
3, T3 is the preset length difference, is 5 in this embodiment.Judge whether successively backward to satisfy from i energy envelope unit and j energy envelope unit | d
J+1-d
I+1|≤T
3, | d
J+2-d
I+2|≤T
3, up to discovery | d
J+k-d
I+k|>T
3In time, stop.Thereby a candidate energies envelope sequence is formed in i to i+k-1 energy envelope unit; Form another candidate energies envelope sequence to j+k-1 energy envelope unit for j.
Step S222, whether the length of judging the candidate energies envelope sequence more than or equal to default advertisement length threshold values, if, execution in step S223.
The lengths table of candidate energies envelope sequence is shown the number of frame in the candidate energies envelope sequence, for the length of all energy envelope unit in this candidate energies envelope sequence add and.
The length of candidate energies envelope sequence is the quantity of the frame that comprises in the candidate energies envelope sequence, and whether the length of judging the candidate energies envelope sequence is more than or equal to default advertisement length threshold values.According to statistics, the length of advertisement is greater than 5 seconds, corresponds to 125 frames, so advertisement length threshold values is 125 in embodiment preferred.If there is the length of a candidate energies envelope sequence not satisfy condition, less than advertisement length threshold values, though show that then all candidate energies envelope sequence are close on length between them, but they do not have the time span characteristic of advertisement, thereby above-mentioned candidate energies envelope sequence all abandoned, carry out step 221 again.If all carried out step S221 operation for all frames in the audio frequency, but do not find the candidate energies envelope sequence that satisfies condition, to be detected the looking of then reaching a conclusion do not comprise the advertisement that repeats in the audio frequency.
Step S223, judge that according to the short-time energy of frame in the described candidate energies envelope sequence whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than the energy jump degree of correlation threshold values of presetting, if then described candidate energies envelope sequence group is the similar sequence set of described energy envelope shape.
The energy jump degree of correlation is the similarity degree of the sudden change of energy.
For the energy jump degree of correlation between the candidate energies envelope sequence multiple different expression way is arranged, corresponding to different expression waies, to different energy jump degree of correlation threshold values should be arranged.
Embodiment one
With the 1 calculated energy ascensional range by formula of all frames in the candidate energies envelope sequence, DF, mean value as the sudden change degree of candidate energies envelope sequence, with the difference of the sudden change degree of above-mentioned candidate energies envelope sequence as the energy jump degree of correlation between the candidate energies envelope sequence.
Embodiment two
Calculate for simplifying, the sudden change degree of the candidate energies envelope sequence in the embodiment one is reduced to the mean value of the energy ascensional range of the start frame of candidate energies envelope sequence and end frame.
Embodiment three
In embodiment one and embodiment two, the linear energy ascensional range of using frame as the energy jump degree of correlation of candidate energies envelope sequence, produces the influence of two-value.Thereby the present invention proposes a preferred implementation.
Be calculated as follows the energy jump degree that the energy envelope unit is represented with the probability form in the candidate energies envelope sequence.
Wherein, d
iRepresent i energy envelope unit of candidate energies envelope sequence.
Be the energy ascensional range of the start frame of i energy envelope unit,
It is the energy ascensional range of the end frame of i energy envelope unit.T
1Being first threshold values, is 2.25 according to the value of an optimization of experiment statistics; T
2Being second threshold values, is 4 according to the value of an optimization of experiment statistics.
An energy envelope cell list is shown
I is this energy envelope unit sequence number in audio frequency, d
iBe the length of this energy envelope unit, p
iThe energy jump degree of representing with the probability form for this energy envelope unit.A candidate energies envelope sequence of being made up of k Continuous Energy envelope unit is expressed as
I is the 1st sequence number of energy envelope unit in audio frequency of this candidate energies envelope sequence.Be expressed as respectively for two candidate energies envelope sequence that find by step S221 and S222
With
Will
As
Marginal probability, will
As
Marginal probability,
With
Joint probability be
The energy jump degree of correlation between two candidate energies envelope sequence is calculated as follows.
Work as P
IjGreater than threshold value T
4The time, then think
With
Be to be respectively an energy envelope sequence.Wherein, threshold value T
4According to a large amount of experiment statistics experience values is 0.8.T
4Be energy jump degree of correlation threshold values.
Step S230 judges according to the MFCC feature of frame in the energy envelope sequence whether the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, if satisfy, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
The mode of using MFCC character representation semantic similarity has multiple.With the mean value of the difference of parameter in the MFCC feature of the corresponding frames of a plurality of candidate energies envelope sequence as semantic similarity, perhaps as method among the step S223 parameter in the MFCC feature is carried out probability conversion, general
To first parameter in the MFCC feature of i frame,
Correspond to second parameter in the MFCC feature of i frame, and then use this probability semantic similarity of method calculated candidate energy envelope sequence among the S223 set by step.
Below just be elaborated with the MFCC Euclidean distance of the interframe of candidate energies envelope sequence situation as the semantic similarity between the energy envelope sequence.
The candidate energies envelope sequence is expressed as (a
I1, a
I2..., a
Im) and (b
I1, b
I2..., b
Im), a wherein
I1..., a
ImRepresent the frame in first candidate energies envelope sequence respectively, b
I1..., b
ImRepresent second frame in the candidate energies envelope sequence respectively.
Embodiment one
Be calculated as follows the MFCC Euclidean distance of j interframe in the candidate energies envelope sequence.
Wherein, D
jThe MFCC Euclidean distance of representing j interframe,
Expression frame a
IjMFCC,
Expression frame b
IjMFCC, k represents k parameter in the MFCC feature.
Calculate the MFCC Euclidean distance less than threshold values T
5Number, according to statistical observation, T
5Get 4.5 o'clock can be optimum distinguish on the voice content whether similar.If less than threshold values T
5MFCC Euclidean distance number greater than the default minimum frame number of advertisement, this embodiment is 125, think that then the semantic similarity of candidate energies envelope sequence satisfies the semantic similarity condition, the candidate energies envelope sequence is the energy envelope sequence, and the audio frequency and video fragment of energy envelope sequence correspondence is advertisement.
Embodiment two
In reality, frame is not necessarily with the frame correspondence of identical sequence position in another candidate energies envelope sequence in the candidate energies envelope sequence, deviation before and after the serial number of corresponding frame in the candidate energies envelope sequence may exist, thereby there is certain error in the disposal route in the embodiment one.In order to proofread and correct above-mentioned error, in embodiment two, calculate the MFCC Euclidean distance of the corresponding interframe of many groups; The i frame of first energy envelope sequence is with the i+e frame correspondence of second energy envelope sequence, and e is an integer, and span is default scope; The value of a corresponding e is calculated the MFCC Euclidean distance between a framing.
For example, the value of e is 0,1 ..., 9,10.The candidate energies envelope sequence is expressed as (a
I1, a
I2..., a
Im) and (b
I1, b
I2..., b
Im).MFCC Euclidean distance between one framing is expressed as a m dimensional vector D
e, D
e={ d
E1, d
E2..., d
Em.
For vectorial D
e, calculate the MFCC Euclidean distance less than threshold values T
5Number, according to statistical observation, T
5Get 4.5 o'clock can be optimum distinguish on the voice content whether similar.Get the maximal value in the number, if arrogant value is greater than the predetermined number threshold values, the quantity threshold values is the minimum frame number of advertisement in this embodiment, be 125, think that then the semantic similarity of candidate energies envelope sequence satisfies the semantic similarity condition, the candidate energies envelope sequence is the energy envelope sequence, and the audio frequency and video fragment of energy envelope sequence correspondence is advertisement.
Embodiment three
For method in the embodiment two, the starting and ending position of the advertising segment of acquisition is accurate inadequately.Thereby increasing the step of judging the advertising segment exact positions in embodiment three, other processes are identical with embodiment two.
For the frame before every group of energy envelope sequence start frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame next frame in audio frequency that does not satisfy described semantic similarity condition is the reference position of advertisement.In like manner, for the frame after every group of energy envelope EOS frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame previous frame in audio frequency that does not satisfy described semantic similarity condition is the end position of advertisement.
Begin forward from the start frame of energy envelope sequence, when by formula 2 calculating e get different value, the semantic similarity of this interframe; If the semantic similarity that calculates for all e is all less than threshold values T
5, then this frame is added into advertising segment, calculates the former frame of this frame; If the value of corresponding different e exists a semantic similarity to be not less than threshold values T
5, then this frame is the boundary frame of advertising segment, and this frame is the n frame in because of audio frequency, and then the n+1 frame is the advertisement start frame in the audio frequency.Same quadrat method is searched the position of advertisement end frame accurately.
After finding a pair of repetition advertising segment, to be detected look search the audio frequency with this to repeating one of them a envelope sequence that sequence length is similar of advertising segment.
A kind of system that detects advertisement from audio frequency and video of the present invention comprises as shown in Figure 2:
Advertisement is searched module 202 and is further comprised: dividing elements module, similar module, the semantic similar module of searching of searching of shape.
The dividing elements module is used for according to the short-time energy of frame described audio frequency being divided into the energy envelope unit.
The dividing elements module is further used for the short-time energy according to frame, will be positioned at energy trace rising edge and energy ascensional range and surpass the division points of the frame of default range value as the energy envelope unit; From described division points audio frequency is divided into the energy envelope unit.
The dividing elements module is further used in the short-time energy according to frame, in the time of will being positioned at frame that energy trace rising edge and energy ascensional range surpass default range value as the division points of energy envelope unit,
Be further used for for each frame in the audio frequency, whether the short-time energy of judging described frame is less than the short-time energy of the next frame of described frame, if then described framing bit is in the energy trace rising edge; For the frame that is positioned at the energy trace rising edge, be calculated as follows the energy ascensional range of described frame,
Wherein, DF is the energy ascensional range of described frame, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value; If DF is greater than described default range value, then described frame is as the division points of energy envelope.
The similar module of searching of shape, be used for finding out two groups of position Continuous Energy envelope unit that mutual energy envelope shape similarity satisfies preset shape similarity condition from described energy envelope unit according to the short-time energy of frame and the length of energy envelope unit, the energy envelope sequence is formed in every group of energy envelope unit.
The similar module of searching of shape is further used for finding out the continuous energy envelope unit, two groups of positions that satisfies length similarity condition from described energy envelope unit, the candidate energies envelope sequence is formed in every group of energy envelope unit, and the difference of the length of the energy envelope unit of same position was less than the preset length difference between described length similarity condition was every group; Judge that according to the short-time energy of frame in the described candidate energies envelope sequence whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than the energy jump degree of correlation threshold values of presetting, if then described candidate energies envelope sequence is described energy envelope sequence.
The similar module of searching of shape is used to also judge that whether the length of described candidate energies envelope sequence is more than or equal to default advertisement length threshold values, if the short-time energy of then carrying out frame in the described candidate energies envelope sequence of described foundation judges that whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values.
Shape is similar searches module and is judging the energy jump degree of correlation between the candidate energies envelope sequence according to the short-time energy of frame in the described candidate energies envelope sequence whether during greater than the energy jump degree of correlation threshold values preset,
Be further used for being calculated as follows the energy ascensional range of frame in the described candidate energies envelope sequence,
Wherein, DF is the energy ascensional range of frame in the described candidate energies envelope sequence, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value; Calculate the energy jump degree degree of correlation between described candidate energies envelope sequence according to the energy ascensional range of described frame, if the energy jump degree of correlation between described candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values, then described candidate energies envelope sequence is described energy envelope sequence.
The semantic similar module of searching, be used for judging according to the Mei Er cepstrum coefficient feature of energy envelope sequence frame whether the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, if satisfy, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
The semantic similar module of searching, when the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also be used for for the frame before every group of energy envelope sequence start frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame next frame in audio frequency that does not satisfy described semantic similarity condition is the reference position of advertisement.
The semantic similar module of searching, when the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also be used for for the frame after every group of energy envelope EOS frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame previous frame in audio frequency that does not satisfy described semantic similarity condition is the end position of advertisement.
The semantic similar Euclidean distance that module is further used for calculating the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence of searching; Judge Euclidean distance less than the number of the frame of predeterminable range threshold values whether greater than default quantity threshold values, if the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
The semantic similar module of searching is when the Euclidean distance of the Mei Er cepstrum coefficient that calculates every pair of corresponding interframe between described energy envelope sequence, be further used for i+e frame correspondence with same second the energy envelope sequence of i frame of first energy envelope sequence, e is an integer, and span is default scope; The different values of corresponding e are calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence, and the Euclidean distance that the peek of corresponding identical e is calculated is formed an Euclidean distance group;
The semantic similar module of searching is judging that Euclidean distance is less than the number of the frame of predeterminable range threshold values whether during greater than the quantity threshold values preset, be further used for for each Euclidean distance group, calculate wherein numerical value less than the number of the Euclidean distance of predeterminable range threshold values, get the individual numerical value of individual numerical value maximum in all Euclidean distance groups as described energy envelope sequence; Whether the individual numerical value of judging described energy envelope sequence greater than default quantity threshold values, if greater than, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
Below by being that advertisement in 10 minutes the broadcast TV program detects as an example to a segment length, introduce the implementation process of the commercial detection method based on audio frequency repeatability of the present invention in detail.Whole process is divided into four-stage substantially: audio stream cut apart extraction with audio frequency characteristics; Divide the energy envelope unit; The similar right detection of coupling of energy envelope shape with repeatability; The starting and ending position of repeated fragment is accurately located in the right checking of similar coupling on the audio frequency semantic content.
Audio stream cut apart extraction stage with audio frequency characteristics, this stage is cut apart audio stream from 10 minutes broadcast TV program fragment, then this audio stream of 10 minutes is carried out feature extraction, the feature of extraction comprises: MFCC, short-time energy, the frame length that adopts is 40ms, and frame moves and is 40ms.
For example this segment length is that 1 advertisement is arranged in 10 minutes the TV programme: new * * *.Wherein new * * * the position occurs 2 times and be respectively 10-25 second, 123-138 second.
Energy envelope is divided the stage, short-time energy feature calculation envelope unit detection function Slope and DF after utilization is level and smooth.The foundation of energy envelope division points is DF>T and Slope>0, and DF>T represents that the energy jump degree satisfies the division condition of energy envelope; Slope>0 expression energy envelope is in the rising edge state.Wherein, T is 1.25 according to a large amount of experiment statistics experience values.
The formula that calculates detection function Slope and DF is:
The Slope functional value of k frame:
Slope
k=(STEN
k+1-STEN
k)/2
The DF functional value of k frame:
Wherein STEN is the short-time energy after level and smooth.
10 minutes TV programme are divided energy envelope, and wherein near the energy envelope 10-25 locates second is (55,1.51), (45,2.51), (51,2.77), (56,3.10), (74,2.63), (40,2.96), (60,3.54), (33,4.12), (22,6.32) locate annex second at 123-138 energy envelope is (31,4.23), (43,2.45), (55,2.71), (55,3.05), (76,2.55), (40,3.02), (62,3.55), (34,4.30), (41,4.13), wherein energy envelope (d, DF) d in represents envelope length, unit is a frame.
The similar right detection-phase of coupling of energy envelope shape with repeatability, utilize energy envelope to divide the energy envelope unit that obtains, the element length of two slice unit of calculating comes envelope unit similar on the detected energy envelope shape with the probability match function between the unit.
When the energy envelope unit
With
Satisfy | d
j-d
i|≤T
3, seek backward successively | d
J+1-d
I+1|≤T
3, | d
J+2-d
I+2|≤T
3..., up to | d
J+k-d
I+k|>T
3, T wherein
3Show that according to a large amount of experiments value is can reach good experiment effect at 5 o'clock.Calculate d
i+ d
I+1+ ... + d
I+k-1With d
j+ d
J+1+ ... + d
J+k-1, when both apart from that of minimum greater than 125 the time, just think that this two envelope unit sequence is similar on the time span distance.In the above-mentioned 10 minutes fragments, (45,2.51), (51,2.77), (56,3.10), (74,2.63), (40,2.96), (60,3.54), (33,4.12) sequence and ((43,2.45), (55,2.71), (55,3.05), (76,2.55), (40,3.02), the similar condition of advertisement energy envelope length is satisfied in (62,3.55), (34,4.30) sequence.
Right to the above-mentioned sequence that satisfies length similarity condition, calculate the DFP value according to following formula:
T
1Being first threshold values, is 2.25 according to the value of an optimization of experiment statistics; T
2Being second threshold values, is 4 according to the value of an optimization of experiment statistics.
Calculating DFP value two energy envelope sequences afterwards is: (45,0.22), (51,0.39), (56,0.35), (74,0.31), (40,0.57), (60,0.90), (33,1) and ((43,0.19), (55,0.36), (55,0.31), (76,0.30), (40,0.59), (62,0.95), (34,1)
Will
As
Marginal probability, will
As
Marginal probability,
With
Joint probability be
The energy jump degree of correlation between two candidate energies envelope sequence is calculated as follows:
Work as P
IjGreater than threshold value T
4The time, think that then these two sequences are similar at energy envelope in shape.Wherein, threshold value T
4According to a large amount of experiment statistics experience values is 0.8.
For above-mentioned two sequences, the marginal probability value of first sequence is: P
1=3.74; The marginal probability value of second sequence is: P
2=3.7; Both joint probabilities are: P
12=3.63
Both energy jump degree of correlation P=0.976 are greater than 0.8.So think that these two energy envelope sequences are similar at energy envelope in shape.
The right checking of similar coupling on the audio frequency semantic content, accurately locate the starting and ending position stage of repeated fragment, whether on audio frequency semantic content similar, we just think that this coupling is to being repeated fragment when similar to satisfying semantic content when coupling at matching unit similar on the envelope shape if utilizing MFCC feature and Euclidean distance to verify.
For above-mentioned (255,256 ...., 620) and (3079,3080, ..., 3450) two fragments of mating in shape at energy envelope, calculate (251,256 ...., 620), (252,256 ...., 620), (253,256 ...., 620), (254,256 ...., 620), (255,256 ...., 620) respectively with (3074,3080 ..., 3450), (3075,3080 ..., 3450), (3076,3080 ..., 3450), (3077,3080 ..., 3450), (3078,3080 ..., 3450), (3079,3080 ..., 3450) between in twos the Euclidean distance of MFCC feature, as calculated (251,256 ...., 620) and (3076,3080 ..., 3450) Euclidean distance satisfy in the similar condition of semantic content greater than 125 less than 4.5 number, so these two fragments are the fragment that repeats.
Those skilled in the art can also carry out various modifications to above content under the condition that does not break away from the definite the spirit and scope of the present invention of claims.Therefore scope of the present invention is not limited in above explanation, but determine by the scope of claims.
Claims (22)
1. method that detects advertisement from audio frequency and video is characterized in that described method comprises:
Step 1 is extracted audio frequency from audio frequency and video to be detected, extract the short-time energy and the Mei Er cepstrum coefficient feature of frame from audio frequency;
Step 2, from described audio frequency, find out mutual similarity according to the short-time energy of frame and Mei Er cepstrum coefficient feature and satisfy two pre-conditioned framings, frame position in described audio frequency in every group of inside is continuous, and every framing corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement;
Described step 2 further is:
Step 21 is divided into the energy envelope unit according to the short-time energy of frame with described audio frequency;
Step 22, find out two groups of position Continuous Energy envelope unit that mutual energy envelope shape similarity satisfies preset shape similarity condition according to the short-time energy of frame and the length of energy envelope unit from described energy envelope unit, the energy envelope sequence is formed in every group of energy envelope unit;
Step 23, judge according to the Mei Er cepstrum coefficient feature of frame in the energy envelope sequence whether the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, if satisfy, then described energy envelope sequence corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
2. the method that detects advertisement from audio frequency and video as claimed in claim 1 is characterized in that,
When the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also comprise after the described step 23:
Step 31, for two groups of energy envelope sequences that satisfy semantic similarity condition frame before the start frame separately, judge successively whether the semantic similarity between the corresponding frame satisfies described semantic similarity condition, first frame next frame in audio frequency that does not satisfy described semantic similarity condition is the reference position of advertisement.
3. the method that detects advertisement from audio frequency and video as claimed in claim 2 is characterized in that,
When the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also comprise after the described step 23:
Step 41, for two groups of energy envelope sequences that satisfy semantic similarity condition frame after the end frame separately, judge successively whether the semantic similarity between the corresponding frame satisfies described semantic similarity condition, first frame previous frame in audio frequency that does not satisfy described semantic similarity condition is the end position of advertisement.
4. the method that detects advertisement from audio frequency and video as claimed in claim 2 is characterized in that, described step 1 also comprises,
Step 51 is carried out smoothing processing to the short-time energy of frame, with the short-time energy of the short-time energy after the smoothing processing as frame.
5. the method that detects advertisement from audio frequency and video as claimed in claim 4 is characterized in that, described step 21 further is,
Step 61 according to the short-time energy of frame, will be positioned at energy trace rising edge and energy ascensional range and surpass the division points of the frame of default range value as the energy envelope unit;
Step 62 is divided into the energy envelope unit from described division points with audio frequency.
6. the method that detects advertisement from audio frequency and video as claimed in claim 4 is characterized in that, described step 22 further is,
Step 71, from described energy envelope unit, find out the continuous energy envelope unit, two groups of positions that satisfies length similarity condition, the candidate energies envelope sequence is formed in every group of energy envelope unit, and the difference of the length of the energy envelope unit of same position was less than the preset length difference between described length similarity condition was every group;
Step 72, judge that according to the short-time energy of frame in the described candidate energies envelope sequence whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than the energy jump degree of correlation threshold values of presetting, if then described candidate energies envelope sequence is described energy envelope sequence.
7. the method that detects advertisement from audio frequency and video as claimed in claim 4 is characterized in that, described step 23 further is,
Step 81 is calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence;
Step 82, judge Euclidean distance less than the number of the frame of predeterminable range threshold values whether greater than default quantity threshold values, if the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
8. the method that detects advertisement from audio frequency and video as claimed in claim 5 is characterized in that, described step 61 further is,
Step 91, for each frame in the audio frequency, whether the short-time energy of judging described frame is less than the short-time energy of the next frame of described frame, if then described framing bit is in the energy trace rising edge;
Step 92 for the frame that is positioned at the energy trace rising edge, is calculated as follows the energy ascensional range of described frame,
Wherein, DF is the energy ascensional range of described frame, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value;
If DF is greater than described default range value, then described frame is as the division points of energy envelope.
9. the method that detects advertisement from audio frequency and video as claimed in claim 6 is characterized in that, also comprises between described step 71 and the described step 72,
Step 101, whether the length of judging described candidate energies envelope sequence is more than or equal to default advertisement length threshold values, if carry out described step 72.
10. the method that detects advertisement from audio frequency and video as claimed in claim 6 is characterized in that, described step 72 further is,
Step 111 is calculated as follows the energy ascensional range of frame in the described candidate energies envelope sequence,
Wherein, DF is the energy ascensional range of frame in the described candidate energies envelope sequence, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value;
Step 112, calculate the energy jump degree degree of correlation between described candidate energies envelope sequence according to the energy ascensional range of described frame, if the energy jump degree of correlation between described candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values, then described candidate energies envelope sequence is described energy envelope sequence.
11. the method that detects advertisement from audio frequency and video as claimed in claim 7 is characterized in that,
Described step 81 further is,
Step 121, the i frame of first energy envelope sequence is with the i+e frame correspondence of second energy envelope sequence, and e is an integer, and span is default scope;
Step 122, the different values of corresponding e are calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence, and the Euclidean distance that the peek of corresponding identical e is calculated is formed an Euclidean distance group;
Described step 82 further is,
Step 123 for each Euclidean distance group, is calculated wherein numerical value less than the number of the Euclidean distance of predeterminable range threshold values, gets the individual numerical value of individual numerical value maximum in all Euclidean distance groups as described energy envelope sequence;
Whether step 124, the individual numerical value of judging described energy envelope sequence greater than default quantity threshold values, if greater than, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
12. a system that detects advertisement from audio frequency and video is characterized in that described system comprises:
Parameter extraction module is used for extracting audio frequency from audio frequency and video to be detected, extracts the short-time energy and the Mei Er cepstrum coefficient feature of frame from audio frequency;
Module is searched in advertisement, be used for finding out mutual similarity from described audio frequency and satisfy two pre-conditioned framings according to the short-time energy of frame and Mei Er cepstrum coefficient feature, the frame of every group of inside position in described audio frequency is continuous, and every framing corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement;
Described advertisement is searched module and is further comprised:
The dividing elements module is used for according to the short-time energy of frame described audio frequency being divided into the energy envelope unit;
The similar module of searching of shape, be used for finding out two groups of position Continuous Energy envelope unit that mutual energy envelope shape similarity satisfies preset shape similarity condition from described energy envelope unit according to the short-time energy of frame and the length of energy envelope unit, the energy envelope sequence is formed in every group of energy envelope unit;
The semantic similar module of searching, be used for judging according to the Mei Er cepstrum coefficient feature of energy envelope sequence frame whether the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, if satisfy, then described energy envelope sequence corresponding audio frequency and video fragment in audio frequency and video to be detected is advertisement.
13. the system that detects advertisement from audio frequency and video as claimed in claim 12 is characterized in that,
The similar module of searching of described semanteme, when the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also be used for for the frame before every group of energy envelope sequence start frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame next frame in audio frequency that does not satisfy described semantic similarity condition is the reference position of advertisement.
14. the system that detects advertisement from audio frequency and video as claimed in claim 12 is characterized in that,
The similar module of searching of described semanteme, when the semantic similarity between described energy envelope sequence satisfies default semantic similarity condition, also be used for for the frame after every group of energy envelope EOS frame, judge successively whether this frame satisfies described semantic similarity condition with the semantic similarity between other energy envelope sequences, first frame previous frame in audio frequency that does not satisfy described semantic similarity condition is the end position of advertisement.
15. the system that detects advertisement from audio frequency and video as claimed in claim 12 is characterized in that described parameter extraction module also is used for smoothing processing is carried out in the short-time energy of frame, with the short-time energy of the short-time energy after the smoothing processing as frame.
16. the system that from audio frequency and video, detects advertisement as claimed in claim 15, it is characterized in that, described dividing elements module is further used for the short-time energy according to frame, will be positioned at energy trace rising edge and energy ascensional range and surpass the division points of the frame of default range value as the energy envelope unit; From described division points audio frequency is divided into the energy envelope unit.
17. the system that from audio frequency and video, detects advertisement as claimed in claim 15, it is characterized in that, the similar module of searching of described shape is further used for finding out the continuous energy envelope unit, two groups of positions that satisfies length similarity condition from described energy envelope unit, the candidate energies envelope sequence is formed in every group of energy envelope unit, and the difference of the length of the energy envelope unit of same position was less than the preset length difference between described length similarity condition was every group; Judge that according to the short-time energy of frame in the described candidate energies envelope sequence whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than the energy jump degree of correlation threshold values of presetting, if then described candidate energies envelope sequence is described energy envelope sequence.
18. the system that detects advertisement from audio frequency and video as claimed in claim 15 is characterized in that, described semanteme is similar searches the Euclidean distance that module is further used for calculating the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence; Judge Euclidean distance less than the number of the frame of predeterminable range threshold values whether greater than default quantity threshold values, if the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
19. the system that detects advertisement from audio frequency and video as claimed in claim 16 is characterized in that,
Described dividing elements module is further used in the short-time energy according to frame, in the time of will being positioned at frame that energy trace rising edge and energy ascensional range surpass default range value as the division points of energy envelope unit,
Be further used for for each frame in the audio frequency, whether the short-time energy of judging described frame is less than the short-time energy of the next frame of described frame, if then described framing bit is in the energy trace rising edge; For the frame that is positioned at the energy trace rising edge, be calculated as follows the energy ascensional range of described frame,
Wherein, DF is the energy ascensional range of described frame, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value; If DF is greater than described default range value, then described frame is as the division points of energy envelope.
20. the system that from audio frequency and video, detects advertisement as claimed in claim 17, it is characterized in that, the similar module of searching of described shape is used to also judge that whether the length of described candidate energies envelope sequence is more than or equal to default advertisement length threshold values, if the short-time energy of then carrying out frame in the described candidate energies envelope sequence of described foundation judges that whether the energy jump degree of correlation between the candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values.
21. the system that from audio frequency and video, detects advertisement as claimed in claim 17, it is characterized in that, described shape is similar searches module and is judging that according to the short-time energy of frame in the described candidate energies envelope sequence the energy jump degree of correlation between the candidate energies envelope sequence is whether during greater than the energy jump degree of correlation threshold values preset
Be further used for being calculated as follows the energy ascensional range of frame in the described candidate energies envelope sequence,
Wherein, DF is the energy ascensional range of frame in the described candidate energies envelope sequence, and k is the sequence number of described frame in audio frequency, and STEN is the short-time energy after the smoothing processing of frame, and m is default comparison frame number value; Calculate the energy jump degree degree of correlation between described candidate energies envelope sequence according to the energy ascensional range of described frame, if the energy jump degree of correlation between described candidate energies envelope sequence is greater than default energy jump degree of correlation threshold values, then described candidate energies envelope sequence is described energy envelope sequence.
22. the system that detects advertisement from audio frequency and video as claimed in claim 18 is characterized in that,
The similar module of searching of described semanteme is when the Euclidean distance of the Mei Er cepstrum coefficient that calculates every pair of corresponding interframe between described energy envelope sequence, be further used for i+e frame correspondence with same second the energy envelope sequence of i frame of first energy envelope sequence, e is an integer, and span is default scope; The different values of corresponding e are calculated the Euclidean distance of the Mei Er cepstrum coefficient of every pair of corresponding interframe between described energy envelope sequence, and the Euclidean distance that the peek of corresponding identical e is calculated is formed an Euclidean distance group;
Described semanteme is similar to be searched module and is judging Euclidean distance less than the number of the frame of predeterminable range threshold values whether during greater than default quantity threshold values,
Be further used for for each Euclidean distance group, calculate wherein numerical value, get the individual numerical value of individual numerical value maximum in all Euclidean distance groups as described energy envelope sequence less than the number of the Euclidean distance of predeterminable range threshold values; Whether the individual numerical value of judging described energy envelope sequence greater than default quantity threshold values, if greater than, the audio frequency and video fragment of then described energy envelope sequence correspondence is advertisement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100874283A CN101576955B (en) | 2009-06-22 | 2009-06-22 | Method and system for detecting advertisement in audio/video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100874283A CN101576955B (en) | 2009-06-22 | 2009-06-22 | Method and system for detecting advertisement in audio/video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101576955A CN101576955A (en) | 2009-11-11 |
CN101576955B true CN101576955B (en) | 2011-10-05 |
Family
ID=41271888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100874283A Expired - Fee Related CN101576955B (en) | 2009-06-22 | 2009-06-22 | Method and system for detecting advertisement in audio/video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101576955B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103458300A (en) * | 2013-08-28 | 2013-12-18 | 天津三星电子有限公司 | Television false advertisement prompting method and system |
CN107452371B (en) * | 2017-05-27 | 2019-03-05 | 北京字节跳动网络技术有限公司 | A kind of construction method and device of Classification of Speech model |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040062520A1 (en) * | 2002-09-27 | 2004-04-01 | Koninklijke Philips Electronics N.V. | Enhanced commercial detection through fusion of video and audio signatures |
CN1589002A (en) * | 2004-08-04 | 2005-03-02 | 威盛电子股份有限公司 | Method and relative system for high efficiency ad detection in video signal |
CN101221622A (en) * | 2008-01-30 | 2008-07-16 | 中国科学院计算技术研究所 | Advertisement detecting and recognizing method and system |
-
2009
- 2009-06-22 CN CN2009100874283A patent/CN101576955B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040062520A1 (en) * | 2002-09-27 | 2004-04-01 | Koninklijke Philips Electronics N.V. | Enhanced commercial detection through fusion of video and audio signatures |
CN1589002A (en) * | 2004-08-04 | 2005-03-02 | 威盛电子股份有限公司 | Method and relative system for high efficiency ad detection in video signal |
CN101221622A (en) * | 2008-01-30 | 2008-07-16 | 中国科学院计算技术研究所 | Advertisement detecting and recognizing method and system |
Non-Patent Citations (1)
Title |
---|
高扬 王向东 钱跃良 刘群.基于音频重复性的广告检测.《第三届全国信息检索与内容安全学术会议》.2007, * |
Also Published As
Publication number | Publication date |
---|---|
CN101576955A (en) | 2009-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101159834B (en) | Method and system for detecting repeatable video and audio program fragment | |
CN102799605B (en) | A kind of advertisement detecting method and system | |
CN100580693C (en) | Advertisement detecting and recognizing method and system | |
CN102930055B (en) | The network new word discovery method of the connecting inner degree of polymerization and external discrete information entropy | |
CN106611604B (en) | Automatic voice superposition detection method based on deep neural network | |
CN106407484B (en) | Video tag extraction method based on barrage semantic association | |
CN103179122B (en) | A kind of anti-telecommunications telephone fraud method and system based on voice semantic content analysis | |
CN103970733B (en) | A kind of Chinese new word identification method based on graph structure | |
US8775174B2 (en) | Method for indexing multimedia information | |
Tranter et al. | Speaker diarisation for broadcast news. | |
CN102073631A (en) | Video news unit dividing method by using association rule technology | |
Johnson et al. | Spoken Document Retrieval for TREC-8 at Cambridge University. | |
CN103605666B (en) | Video copying detection method for advertisement detection | |
CN112002328B (en) | Subtitle generation method and device, computer storage medium and electronic equipment | |
EP2471025A1 (en) | A method and system for preprocessing the region of video containing text | |
CN101398826A (en) | Method and apparatus for auto-extracting wonderful segment of sports program | |
CN103559880A (en) | Voice input system and voice input method | |
CN101576955B (en) | Method and system for detecting advertisement in audio/video | |
CN110164417A (en) | A kind of languages vector obtains, languages know method for distinguishing and relevant apparatus | |
CN109995450B (en) | Cloud technology based voice recognition and intelligent black broadcast identification method | |
CN113194332B (en) | Multi-policy-based new advertisement discovery method, electronic device and readable storage medium | |
CN108182420A (en) | A kind of advertisement localization method based on the detection of advertisement printed words | |
KR102093790B1 (en) | Evnet information extraciton method for extracing the event information for text relay data, and user apparatus for perfromign the method | |
EP4447469A2 (en) | Processing method and apparatus, terminal device and medium | |
CN113782051B (en) | Broadcast effect classification method and system, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111005 |
|
CF01 | Termination of patent right due to non-payment of annual fee |