Then, matching is performed on keyframes for queries such as "a upper-left corner kick".
Suppose , where Si is the time when a scene break occurs, then the set of commercial advertisements can be defined as:
, which states that if in a period of 15 (or 30) seconds there are more than 3 scene breaks, then it is a commercial program.