GB2425431A - Video entity recognition in compressed digital video streams - Google Patents
Video entity recognition in compressed digital video streams Download PDFInfo
- Publication number
- GB2425431A GB2425431A GB0607076A GB0607076A GB2425431A GB 2425431 A GB2425431 A GB 2425431A GB 0607076 A GB0607076 A GB 0607076A GB 0607076 A GB0607076 A GB 0607076A GB 2425431 A GB2425431 A GB 2425431A
- Authority
- GB
- United Kingdom
- Prior art keywords
- video stream
- fingerprints
- advertisement
- compressed digital
- digital video
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 claims abstract description 101
- 238000012545 processing Methods 0.000 claims description 24
- 239000013598 vector Substances 0.000 claims description 18
- 230000033001 locomotion Effects 0.000 claims description 14
- 238000000926 separation method Methods 0.000 claims description 12
- 238000004519 manufacturing process Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 abstract description 94
- 208000019698 Cutaneous collagenous vasculopathy Diseases 0.000 description 36
- 201000009911 cataract 8 multiple types Diseases 0.000 description 36
- 239000003086 colorant Substances 0.000 description 27
- 230000008859 change Effects 0.000 description 23
- 238000007906 compression Methods 0.000 description 20
- 230000006835 compression Effects 0.000 description 18
- 230000008569 process Effects 0.000 description 17
- 230000001427 coherent effect Effects 0.000 description 16
- 238000003780 insertion Methods 0.000 description 15
- 230000037431 insertion Effects 0.000 description 15
- 230000005540 biological transmission Effects 0.000 description 13
- 230000002123 temporal effect Effects 0.000 description 13
- 230000009471 action Effects 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 9
- 238000006467 substitution reaction Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000003860 storage Methods 0.000 description 6
- 235000013405 beer Nutrition 0.000 description 5
- 238000001228 spectrum Methods 0.000 description 5
- 238000013519 translation Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000009826 distribution Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000006837 decompression Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- LFQSCWFLJHTTHZ-UHFFFAOYSA-N Ethanol Chemical compound CCO LFQSCWFLJHTTHZ-UHFFFAOYSA-N 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- 239000012925 reference material Substances 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010348 incorporation Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 235000019520 non-alcoholic beverage Nutrition 0.000 description 1
- 238000011045 prefiltration Methods 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 238000011524 similarity measure Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
- 238000009333 weeding Methods 0.000 description 1
- 230000003442 weekly effect Effects 0.000 description 1
- 238000005303 weighing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/812—Monomedia components thereof involving advertisement data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/783—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/7847—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/50—Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
- G11B27/031—Electronic editing of digitised analogue information signals, e.g. audio or video signals
- G11B27/034—Electronic editing of digitised analogue information signals, e.g. audio or video signals on discs
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/10—Indexing; Addressing; Timing or synchronising; Measuring tape travel
- G11B27/19—Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
- G11B27/28—Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/16—Analogue secrecy systems; Analogue subscription systems
- H04N7/162—Authorising the user terminal, e.g. by paying; Registering the use of a subscription channel, e.g. billing
- H04N7/163—Authorising the user terminal, e.g. by paying; Registering the use of a subscription channel, e.g. billing by receiver means only
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Library & Information Science (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
A method and system for detection of video segments in compressed digital video streams is presented. The compressed digital video stream is examine to determine synchronization points, and the compressed video signal is analyzed following detection of the synchronization points to create video fingerprints that are subsequently compared against a library of stored fingerprints.
Description
91065-HMM-104 I Video Entity Recognition in Compressed Digital Video
Streams 100011 Detection of video segments is used to recognize known video segments and take subsequent video processing steps. In one example, specific advertisements or video scenes are detected in a video stream and substituted or deleted from the video stream. In other applications it is desirable to recognize certain scenes for other purposes such as video indexing or the creation of other metadata or other reference material attached to that particular video scene. In all of these examples it is necessary to be able to recognize a known video segment.
100021 Methods have been developed which can be used to detect known video sequences.
These methods include recognition of certain characteristics associated with scene changes or certain video segments as well as the comparison of video segments with fingerprints of those video segments. In the fingerprinting technique, the known video segments are characterized and the incoming video stream is compared with the characterizations to determine if a known video sequence is in fact present at that time.
100031 One technique for recognizing video segments is to create a colour coherence vector (CCV) or a low-res image (e.g., of size 8 by 8 pixels) representation of a known video sequence and compare the CCV or low-res image fingerprint against the colour coherence vectors or low-res images of incoming video streams. Other techniques can be used to compare the incoming video to stored fingerprints but all of the known presently used techniques are based on operations performed in the uncompressed domain. This requires that the video be completely decompressed in order to calculate the specific parameters of the fingerprint and perform a comparison. Even in the instances in which there is a partial decompression, specific algorithms performed on the decompressed stream need to be performed to compare the incoming video stream with the fingerprint. It is desirable to have a method and system of detecting video sequences in compressed digital video streams prior to their decompression.
100041 The present method and system is based on the use of statistical parameters of compressed digital video streams for the recognition of known video segments by comparison against fingerprints. The method and system can be used to identify the video 91065-HMM-104 2 segments by comparing statistical parameters of the compressed stream with fingerprints of known video sequences, those fingerprints containing parameters related to the compressed stream. The technique may also be used in conjunction with fingerprinting techniques based on the uncompressed domain such that a partial comparison is made in the compressed domain and a subsequent comparison is made in the uncompressed domain. One of the advantages of the present method and system is that it allows for more efficient and rapid identification of known video sequences and does not rely on processing completely in the uncompressed domain. Synchronization can be obtained from the compressed digital video signal. In other words, the compressed fingerprint may serve as a fast pre-filter to find matching candidates, while the (slower) comparison in the uncompressed domain is used for verification. Based on the detection of synchronization points, subsequent signal processing is facilitated to provide efficient fingerprinting of the incoming digital video signal.
100051 The present method and system is used to detect a known video entity within a compressed digital video stream. The compressed digital stream is received, and synchronization points are determined within the compressed stream. Statistical parameterized representations of the compressed digital video stream for windows following the synchronization points in the video stream are created, and compared to windows of a plurality of fingerprints that includes associated statistical parameterized representations of known video entities. A known video entity is detected in the compressed digital video stream when at least one of the plurality of fingerprints has at least a threshold level of similarity to fingerprint created from the video stream.
100061 Certain preferred embodiments of the present invention will now be described in greater detail by way of example only and with reference to the accompanying drawings, in which: 100071 Fig. 1 is a diagram of a content delivery system, according to one embodiment of the present invention; 100081 Fig. 2 is a diagram of a configuration for local detection of advertisements within a video programming stream used in the content delivery system of Fig. 1, according to one embodiment of the present invention; 91065-HMM-104 3 100091 Fig. 3 shows an exemplary pixel grid for a video frame and an associated colour histogram, according to one embodiment of the present invention; 100101 Fig. 4 shows an exemplary comparison of two colour histograms, according to one embodiment of the present invention; 100111 Fig. 5 shows an exemplary pixel grid for a video frame and associated colour histogram and colour coherence vector, according to one embodiment of the present invention, according to one embodiment of the present invention; 100121 Fig. 6A shows an exemplary comparison of colour histograms and CCVs for two images, according to one embodiment of the present invention; 100131 Fig. 6B shows comparison of edge pixels for two exemplary consecutive images, according to one embodiment of the present invention; 100141 Fig. 6C shows comparison of the movement of macroblocks for two exemplary consecutive images, according to one embodiment of the present invention; 100151 Fig. 7 shows an exemplary pixel grid for a video frame with a plurality of regions sampled and the determination of the average colour for a regions, according to one embodiment of the present invention; [00161 Fig. 8 shows two exemplary pixel grids having a plurality of regions for sampling and coherent and incoherent pixels identified, according to one embodiment of the present invention; [00171 Fig. 9 shows exemplary comparisons of the pixel grids of Fig. 8 based on colour histograms for the entire frame, CCVs for the entire frame and average colour for the plurality of regions, according to one embodiment of the present invention; 100181 Fig. 10 is a block diagram of an advertisement matching process, according to one embodiment of the present invention; 91065-HMM-104 4 10019] Fig. 11 is a block diagram of an initial dissimilarity determination process, according to one embodiment of the present invention; 100201 Fig. 12 shows an exemplary initial comparison of calculated features for an incoming stream versus initial portions of fingerprints for a plurality of known advertisements, according to one embodiment of the present invention; [00211 Fig. 13 shows an exemplary initial comparison of calculated features for an incoming stream, similar to Fig. 12, with an expanded initial portion of a fingerprint for a known advertisement, according to one embodiment of the present invention; 100221 Fig. 14 shows an exemplary expanding window comparison of the features of the incoming video stream and the features of the fingerprints of known advertisements, according to one embodiment of the present invention; [00231 Fig. 15 shows an exemplary pixel grid divided into sections, according to one embodiment of the present invention; [0024] Fig. 16 shows an exemplary comparison of two whole images and corresponding sections of the two images, according to one embodiment of the present invention; [00251 Fig. 17 shows an exemplary comparison of pixel grids by sections, according to one embodiment of the present invention; [0026] Fig. I 8A shows two images with different overlays, according to one embodiment of the present invention; 100271 Fig. 1 8B shows two additional images with different overlays, according to one embodiment of the present invention; 100281 Fig. 19A shows an exemplary impact on pixel grids of an overlay being placed on corresponding image, according to one embodiment of the present invention; 10029] Fig. 19B shows an exemplary pixel grid with a region of interest excluded, according to one embodiment of the present invention; 91065-HMM-104 5 [0030] Fig. 20 shows an exemplary image to be fingerprinted that is divided into four sections and has a portion to be excluded from fingerprinting, according to one embodiment of the present invention; 10031] Fig. 21 shows an exemplary image to be fingerprinted that is divided into a plurality of regions that are evenly distributed across the image and has a portion to be excluded from fingerprinting, according to one embodiment of the present invention; 100321 Fig. 22A shows an exemplary channel change image where a channel banner is a region of disinterest, according to one embodiment of the present invention; [0033] Fig. 22B shows an exemplary channel change image where channel identification information contained in a channel banner is a region of interest, according to one embodiment of the present invention; [0034] Fig. 23 shows an image with expected locations of a channel banner and channel identification information within the channel banner identified, according to one embodiment of the present invention; [0035] Fig. 24 shows the family of feature based detection methods as well as recognition, and specifically fingerprint, detection methods, according to one embodiment of the present invention; [0036] Fig. 25 is a diagram of a spatial compression process for digital video with associated statistically relevant parameters, according to an embodiment of the present invention; 100371 Fig. 26 is a table of size and run length parameters being converted to code words for transmission as indicated the process in Fig. 25, according to one embodiment of the present invention; 100381 Fig. 27 is a block diagram showing a method for video entity recognition, according to an embodiment of the present invention; 91065-HMM-104 6 100391 Fig. 28 shows a spatially coded transmission stream created with the encoding demonstrated in Fig. 26, with associated statistically relevant parameters, according to an embodiment of the present invention; 100401 Fig. 29 shows a temporally encoded transmission stream with associated statistically relevant parameters, according to an embodiment of the present invention; and [00411 Fig. 30 shows synchronization points within a compressed transmission stream used to trigger creation of statistical parameter as described in Figs. 25 and 29, according to an embodiment of the present invention.
100421 Certain terminology is used herein for convenience only and is not to be taken as a limitation on the present invention. In the drawings, the same reference letters are employed for designating the same elements throughout the several figures.
100431 An exemplary content delivery system 100 is shown in Fig. 1. The system 100 includes a broadcast facility 110 and receiving/presentation locations. The broadcast facility transmits content to the receiving/presentation facilities and the receiving/presentation facilities receive the content and present the content to subscribers. The broadcast facility may be a satellite transmission facility, a headend, a central office or other distribution center. The broadcast facility 110 may transmit the content to the receiving/presentation locations via satellite 170 or via a network 180. The network 180 may be the Internet, a cable television network (e.g., hybrid fiber cable, coaxial), a switched digital video network (e.g., digital subscriber line, or fiber optic network), broadcast television network, other wired or wireless network, public network, private network, or some combination thereof.
The receiving/presentation facilities may include residence 120, pubs, bars and/or restaurants 130, hotels and/or motels 140, business 150, and/or other establishments 160.
100441 In addition, the content delivery system 100 may also include a Digital Video Recorder (DVR) that allows the user (residential or commercial establishment) to record and playback the programming. The methods and system described herein can be applied to DVRs both with respect to content being recorded as well as content being played back.
91065-1-IMM-104 7 100451 The content delivery network 100 may deliver many different types of content.
However, for ease of understanding the remainder of this disclosure will concentrate on programming and specifically video programming. Many programming channels include advertisements with the programming. The advertisements may be provided before and/or after the programming, may be provided in breaks during the programming, or may be provided within the programming (e.g., product placements, bugs, banner ads). For ease of understanding the remainder of the disclosure will focus on advertisements opportunities that are provided between programming, whether it be between programs (e.g., after one program and before another) or during programming (e.g., advertisement breaks in programming, during time outs in sporting events). The advertisements may subsidize the cost of the programming and may provide additional sources of revenue for the broadcaster (e.g., satellite service provider, cable service provider).
100461 In addition to being able to recognize advertisements it is also possible to detect particular scenes of interest or to generically detect scene changes. A segment of video or a particular image, or scene change between images, which is of interest, can be considered to be a video entity. The library of video segments, images, scene changes between images, or fingerprints of those images can be considered to be comprised of known video entities.
100471 A variety of mechanisms for detection of video entities and subsequently mechanisms for defeating the automated detection of video entities such as intros, outros, and advertisements are discussed herein.
100481 As the advertisements provided in the programming may not be appropriate to the audience watching the programming at the particular location, substituting advertisements may be beneficial and/or desired. Substitution of advertisements can be performed locally (e.g., residence 120, pub 130, hotel 140) or may be performed somewhere in the video distribution system 100 (e.g., head end, nodes) and then delivered to a specific location (e.g., pub 130), a specific geographic region (e.g., neighborhood), subscribers having specific traits (e.g., demographics) or some combination thereof. For ease of understanding, the remaining disclosure will focus on local substitution as the substitution and delivery of targeted advertisements from within the system 100.
91065-HMM-104 8 [00491 Substituting advertisements requires that advertisements be detected within the programming. The advertisements may be detected using information that is embedded in the program stream to define where the advertisements are. For analog programming cue tones may be embedded in the programming to mark the advertisement boundaries. For digital programming digital cue messages may be embedded in the programming to identify the advertisement boundaries. Once the cue tones or cue tone messages are detected, a targeted advertisement or targeted advertisements may be substituted in place of a default advertisement, default advertisements, or an entire advertisement block. The local detection of cue tones (or cue tone messages) and substitution of targeted advertisements may be performed by local system equipment including a set top box (STB) or DVR. However, not all programming streams include cue tones or cue tone messages. Moreover, cue tones may not be transmitted to the STB or DVR since the broadcaster may desire to suppress them to prevent automated ad detection (and potential deletion).
100501 Techniques for detecting advertisements without the use of cue tones or cue messages include manual detection (e.g., individuals detecting the start of advertisements) and automatic detection. Regardless of what technique is used, the detection can be performed at various locations (e.g., pubs 130, hotels 140). Alternatively, the detection can be performed external to the locations where the external detection points may be part of the system (e.g., node, head end) or may be external to the system. The external detection points would inform the locations (e.g., pubs 130, hotels 140) of the detection of an advertisement or advertisement block. The communications from the external detection point to the locations could be via the network 170. For ease of understanding this
disclosure, we will focus on local detection.
100511 An exemplary configuration for manual local detection of advertisements within a video programming stream is shown in Fig. 2.. The incoming video stream is received by a network interface device (NID) 200. The type of network interface device will be dependent on how the incoming video stream is being delivered to the location. For example, if the content is being delivered via satellite (e.g., 170 of Fig. 1) the NID 200 will be a satellite dish (illustrated as such) for receiving the incoming video stream. The incoming video stream is provided to a STB 210 (a tuner) that tunes to a desired channel, and possibly 91065-HMM-104 9 decodes the channel if encrypted or compressed. It should be noted that the STB 210 may also be capable of recording programming as is the case with a DVR or video cassette recorder VCR.
100521 The STB 210 forwards the desired channel (video stream) to a splitter 220 that provides the video stream to a detection/replacement device 230 and a selector (e.g., A/B switch) 240. The detection/replacement device 230 detects and replaces advertisements by creating a presentation stream consisting of programming with targeted advertisements. The selector 240 can select which signal (video steam or presentation stream) to output to an output device 250 (e.g., television). The selector 240 may be controlled manually by an operator, may be controlled by a signal/message (e.g., ad break beginning message, ad break ending message) that was generated and transmitted from an upstream detection location, and/or may be controlled by the detection/replacement device 230. The splitter 220 and the selector 240 may be used as a bypass circuit in case of an operations issue or problem in the detection/replacement device 230. The default mode for the selector 240 may be to pass- through the incoming video stream.
100531 Manually switching the selector 240 to the detection/replacement device 230 may cause the detection/replacement device 230 to provide advertisements (e.g., targeted advertisements) to be displayed to the subscriber (viewer, user). That is, the detection/replacement device 230 may not detect and insert the advertisements in the program stream to create a presentation stream. Accordingly, the manual switching of the selector 240 may be the equivalent to switching a channel from a program content channel to an advertisement channel. Accordingly, this system would have no copyright issues associated therewith as no recording, analyzing, or manipulation of the program stream [0054] While the splitter 220, the detection/replacement device 230, and the selector 240 are all illustrated as separate components they are not limited thereby. Rather, all the components could be part of a single component (e.g., the splitter 220 and the selector 240 contained inside the detection/replacement device 230; the splitter 220, the detection/replacement device 230, and the selector 240 could be part of the STB 210).
91065-HMM-104 10 100551 Automatic techniques for detecting advertisements (or advertisement blocks) may include detecting aspects (features) of the video stream that indicate an advertisement is about to be displayed or is being displayed (feature based detection). For example, advertisements are often played at a higher volume than programming so a sudden volume increase (without commands from a user) may indicate an advertisement. Many times several dark monochrome (black) frames of video are presented prior to the start of an advertisement so the detection of these types of frames may indicate an advertisement. The above noted techniques may be used individually or in combination with one another. These techniques may be utilized along with temporal measurements, since commercial breaks often begin within a certain known time range. However, these techniques may miss advertisements if the volume does not increase or if the display of black frames is missing or does not meet a detection threshold. Moreover, these techniques may result in false positives (detection of an advertisement when one is not present) as the programming may include volume increases or sequences of black frames.
10056] Frequent scene/shot breaks are more common during an advertisement since action/scene changes stimulate interest in the advertisement. Additionally, there is typically more action and scene changes during an advertisement block. Accordingly, another possible automatic feature based technique for detecting advertisements is the detection of scene/shot breaks (or frequent scene/shot breaks) in the video programming. Scene breaks may be detected by comparing consecutive frames of video. Comparing the actual images of consecutive frames may require significant processing. Alternatively, scene/shot breaks may be detected by computing characteristics for consecutive frames of video and for comparing these characteristics. The computed characteristics may include, for example, a colour histogram or a colour coherence vector (CCV). The detection of scene/shot breaks may result in many false positives (detection of scene changes in programming as opposed to actual advertisements).
100571 A colour histogram is an analysis of the number of pixels of various colours within an image or frame. Prior to calculating a colour histogram the frame may be scaled to a particular size (e.g., a fixed number of pixels), the colours may be reduced to the most significant bits for each colour of the red, blue, green (RGB) spectrum, and the image may *1 91065-HMM-104 11 be smoothed by filtering. As an example, if the RGB spectrum is reduced to the 2 most significant bits for each colour (4 versions of each colour) there will be a total of 6 bits for the RGB colour spectrum or 64 total colour combinations (26).
100581 An exemplary pixel grid 300 for a video frame and an associated colour histogram 310 is shown in Fig. 3. As illustrated the pixel grid 300 is 4x4 (16 pixels) and each grid is identified by a six digit number with each two digit portion 320 representing a specific colour (RGB). Below the digit is the colour identifier for each colour 330. For example, an upper left grid has a 100000 as the six digit number which equates to R2, G0 and B0. As discussed, the colour histogram 310 is the number of each colour in the overall pixel grid.
For example in Fig. 3, the 9 R0's in the pixel grid 300 are indicated in the first column 340 of the colour histogram 310.
100591 Fig. 4 shows an exemplary comparison of two colour histograms 400, 410. The comparison entails computing the difference/distance between the two. The distance may be computed for example by summing the absolute differences (Li-Norm) 420 or by summing the square of the differences (L2Norm) 430. For simplicity and ease of understanding we assume that the image contains only 9 pixels and that each pixel has the same bit identifier for each of the colours in the ROB spectrum such that each colour is represented by a single number. The difference between the colour histograms 400, 410 is 6 using the absolute difference method 420 and 10 using the squared difference method 430. Depending on the method utilized to compare the colour histograms the threshold used to detect scene changes or other parameters may be adjusted accordingly.
0] A colour histogram tracks the total number of colours in a frame. Thus, it is possible that when comparing two frames that are completely different but utilize similar colours throughout, a false match will occur. CCVs divide the colours from the colour histogram into coherent and incoherent ones based on how the colours are grouped together.
Coherent colours are colours that are grouped together in more than a threshold number of connected pixels and incoherent colours are colours that are either not grouped together or are grouped together in less than a threshold number of pixels. For example, if 8 is the
I
91065-HMM-104 12 threshold and there are only 7 red pixels grouped (connected together) then these 7 red pixels are considered incoherent.
100611 An exemplary pixel grid 500 for a video frame and associated colour histogram 510 and CCVs 520, 530 is shown in Fig 5. For ease of understanding we assume that all of the colours in the pixel grid have the same number associated with each of the colours (RGB) so that a single number represents each colour and the pixel grid 500 is limited to 16 pixels.
Within the grid 500 there are some colours that are grouped together (has at least one other colour at a connected pixel - one of the 8 touching pixels) and some colours that are by themselves. For example, two colour is 540, four colour 2s 550, and four (two sets of 2) colour 3s 560, 570 are grouped (connected), while three colour Os, one colour 1, and two colour 3s are not grouped (connected). The colour histogram 510 indicates the number of each colour. A first CCV 520 illustrates the number of coherent and incoherent colours assuming that the threshold grouping for being considered coherent is 2 (that is a grouping of two pixels of the same colour means the pixels are coherent for that colour). A second CCV 530 illustrates the number of coherent and incoherent colours assuming that the threshold grouping was 3. The colours impacted by the change in threshold are colour 0 (went from 2 coherent and I incoherent to 0 coherent and 3 incoherent) and colour 3 (went from 4 coherent and 2 incoherent to 0 coherent and 6 incoherent). Depending on the method utilized to compare the CCVs the threshold used for detecting scene changes or other parameters may be adjusted accordingly.
100621 Fig. 6A shows an exemplary comparison of colour histograms 600, 602 and CCVs 604, 606 for two images. in order to compare, the differences (distances) between the colour histograms and the CCVs can be calculated. The differences may be calculated, for example, by summing the absolute differences (LI-Norm) or by summing the square of the differences (L2Norm). For simplicity and ease of understanding assume that the image contains only 9 pixels and that each pixel has the same bit identifier for each of the colours in the RGB spectrum. As illustrated the colour histograms 600, 602 are identical so the difference (A CH) 608 is 0 (calculation illustrated for summing the absolute differences).
The difference (A CCV) 610 between the two CCVs 604 606 is 8 (based on the sum of the absolute differences method).
91065-HMM-104 13 [0063] Another possible feature based automatic advertisement detection technique includes detecting action (e.g., fast moving objects, hard cuts, zooms, changing colours) as an advertisement may have more action in a short time than the programming. According to one embodiment, action can be determined using edge change ratios (ECR). ECR detects structural changes in a scene, such as entering, exiting and moving objects. The changes are detected by comparing the edge pixels of consecutive images (frames), n and n-I. Edge pixels are the pixels that form a distinct boundary between two distinct objects or surfaces within a scene (e.g., a person, a house). A determination is made as to the total number of edge pixels for two consecutive images, cT and the number of edge pixels exiting a first frame, and the number of edge pixels entering a second image, The ECR is the maximum of(l) the ratio of outgoing edge pixels to total pixels for a first image (X), or anl (2) the ratio of incoming edge pixels to total pixels for a second image (X).
[0064J Two exemplary consecutive images, n 620 and n-i 630 are shown inFig. 6B. Edge pixels for each of the images are shaded. The total number of edge pixels for image n-I, a , is 43 while the total number of edge pixels for image n, , is 33. The pixels circled 632, 634, and 636 in image n-I are not part of the image n (they exited image n-I). Accordingly, the number of edge pixels exiting image n-i, is 22. The pixels circled 622, 624, and 626 in image n were not part of image n-i (they entered image n). Accordingly, the number of edge pixels entering image n, is i2. The ECR 640 is the greater of the two ratios
OW
X-1 (23) and (1%'3). Accordingly, the ECR value is 0.512.
10065] Action can be determined using a motion vector length (MVL). The MVL divides images (frames) into macroblocks (e.g., I6xI6 pixels). A determination is then made as to where each macroblock is in the next image (e.g., distance between macroblock in consecutive images). The determination may be limited to a certain number of pixels (e.g., 20) in each direction. If the location of the macroblock can not be determined then a predefined maximum distance may be defined (e.g., 20 pixels in each direction). The 91065-HMM-104 14 macroblock length vector for each macroblock can be calculated as the square root of the sum of the squares of the differences between the x and y coordinates ((x1 -x)2 +(y1 +y2)2).
100661 Fig. 6C shows two exemplary consecutive images, n 650 and n-i 660. The images are divided into a plurality of macroblocks 670 (as illustrated each macroblock is 4 (2x2) pixels). Four specific macroblocks 672, 674, 676, and 678 are identified with shading and are labeled 1-4 in the image n-I 660. A maximum search area 680 is defined around the 4 specific macroblocks as a dotted line (as illustrated the search areas is one macroblock in each direction). The four macroblocks 672, 674, 676, and 678 are identified with shading on the image n 650. Comparing the specified macroblocks between images 650 and 660 reveals that the first 672 and second macroblocks 674 moved within the defined search area, the third macroblock 676 did not move, and the fourth macroblock 678 moved out of the search area. If the upper left hand pixel is used as the coordinates for the macroblock it can be seen that MB1 moved from 1,1 to 2,2; MB2 moved from 9,7 to 11,9; MB3 did not move from 5,15; and MB4 moved from 13,13 to outside of the range. Since MB4 could not be found within the search window a maximum distance of 3 pixels in each direction is defined. Accordingly, the length vectors 590 for the macroblocks are 1. 41 for MB!, 2.83 for MB2, 0 for MB3, and 4.24 for MB4.
[00671 As with the other feature based automatic advertisement detection techniques the action detection techniques (e.g., ECR, MVL) do not always provide a high level of confidence that the advertisement is detected and may also led to false positives.
100681 Several of these techniques may be used in conjunction with one another to produce a result with a higher degree of confidence and may be able to reduce the number of false positives and detect the advertisements faster. However, as the feature based techniques are based solely on recognition of features that may be present more often in advertisements than programming there can probably never be a complete level of confidence that an advertisement has been detected. In addition, it may take a long time to recognize that these features are present (several advertisements).
91065-HMM-104 15 100691 In some countries, commercial break intros are utilized to indicate to the viewers that the subsequent material being presented is not programming but rather sponsored advertising. These commercial break intros vary in nature but may include certain logos, characters, or other specific video and audio messages to indicate that the subsequent material is not programming but rather advertising. The return to programming may in some instances also be preceded by a commercial break outro which is a short video segment that indicates the return to programming. In some cases the intros and the outros may be the same with an identical programming segment being used for both the intro and the outro. Detecting the potential presence of the commercial break intros or outros may indicate that an advertisement (or advertisement block) is about to begin or end respectively.
If the intros and/or outros were always the same, detection could be done by detecting the existence of specific video or audio, or specific logos or characters in the video stream, or by detecting specific features about the video stream (e.g., CCVs). However, the intros and/or outros need not be the same. The intros/outros may vary based on at least some subset of day, time, channel (network), program, and advertisement (or advertisement break).
100701 Intros may be several frames of video easily recognized by the viewer, but may also be icons, graphics, text, or other representations that do not cover the entire screen or which are only shown for very brief periods of time.
100711 Increasingly, broadcasters are also selling sponsorship of certain programming which means that a sponsor's short message appears on either side (beginning or end) of each ad break during that programming. These sponsorship messages can also be used as latent cue tones indicating the start and end of ad breaks.
100721 The detection of the intros, outros, and/or sponsorship messages may be based on comparing the incoming video stream, to a plurality of known intros, outros, and/or sponsorship messages. This would require that each of a plurality of known intros, outros, and/or sponsorship messages be stored and that the incoming video stream be compared to each. This may require a large amount of storage and may require significant processing as well, including the use of non-real-time processing. Such storage and processing may not be feasible or practical, especially for real time detection systems. Moreover, storing the 91065-HMM-104 16 known advertisements for comparing to the video programming could potentially be considered a copyright violation.
100731 The detection of the intros, outros, and/or sponsorship messages may be based on detecting messages, logos or characters within the video stream and comparing them to a plurality of known messages, logos or characters from known intros, outros, and/or sponsorship messages. The incoming video may be processed to find these messages, logos or characters. The known messages, logos or characters would need to be stored in advance along with an association to an intro or outro. The comparison of the detected messages, logos or characters to the known messages, logos or characters may require significant processing, including the use of non-real-time processing. Moreover, storing the known messages, logos or characters for comparison to messages, logos or characters from the incoming video stream could potentially be considered a copyright violation.
100741 The detection of the intros, outros, and/or sponsorship messages may be based on detecting messages within the video stream and determining the meaning of the words (e.g., detecting text in the video stream and analyzing the text to determine if it means an advertisement is about to start).
100751 Alternatively, the detection may be based on calculating features (statistical parameters) about the incoming video stream. The features calculated may include, for example, colour histograms or CCVs as discussed above. The features may be calculated for an entire video frame, as discussed above, number of frames, or may be calculated for evenly/randomly highly subsampled representations of the video frame. For example, the video frame could be sampled at a number (e.g., 64) of random locations or regions in the video frame and parameters such as average colour) may be computed for each of these regions. The subsampling can also be performed in the temporal domain. The collection of features including CCVs for a plurality of images/frames, colour histograms for a plurality of regions, may be referred to as a fingerprint.
[00761 An exemplary pixel grid 700 for a video frame is shown in Fig. 7. For ease of understanding, we limit the pixel grid to 12x12 (144 pixels), limit the colour variations for each colour (RGB) to the two most significant bits (4 colour variations), and have each pixel 91065-HMM-104 17 have the same number associated with each of the colours (RGB) so that a single number represents each colour. A plurality of regions 710, 720, 730, 740, 750, 760, 770, 780, 785, 790, 795 of the pixel grid 700 are sampled and an average colour for each of the regions 710, 720, 730, 740, 750, 760, 770, 780, 785, 790, 795 is calculated. For example, the region 710 has an average colour of 1.5, the region 790 has an average colour of. 5 and the region 795 has an average colour of 2.5, as shown in the average colour chart 705.
10077] One advantage of the sampling of regions of a frame instead of an entire frame is that the entire frame would not need to be copied in order to calculate the features (if copying was even needed to calculate the features). Rather, certain regions of the image may be copied in order to calculate the features for those regions. As the regions of the frame would provide only a partial image and could not be used to recreate the image, there would be less potential copyright issues. As will be discussed in more detail later, the generation of fingerprints for known entities (e.g., advertisements, intros) that are stored in a database for comparison could be done for regions as well and therefore create less potential copyright issues.
100781 Two exemplary pixel grids 800 and 810 are shown in Fig. 8. Each of the pixel grids is I lxii (121 pixels) and is limited to binary colour values (0 or 1) for simplicity reasons.
The top view of each pixel grid 800, 810 has a plurality of regions identified 815-850 and 855-890 respectively. The lower view of each pixel grids 800, 810 has the coherent 85 1-853 and 89 1-894 and incoherent pixels identified, where the threshold level is greater than 5.
10079] Fig. 9 shows exemplary comparisons of the pixel grids 800, 810 of Fig. 8. Colour histograms 900, 910 are for the entire frame 800, 810 respectively and the difference in the colour histograms ACH 920 is 0. CCVs 930, 940 are for the entire frame 800, 810 respectively and the difference, ACCVs 950 is 0. Average colours 960, 970 capture the average colours for the various identified regions in frames 800, 810. The difference is the average colour of the regions 980 is 3.5 (using the sum of absolute values).
10080] FIGs. 7-9 focused on determining the average colour for each of the regions but the techniques illustrated therein are not limited to average colour determinations. For example, a colour histogram or CCV could be generated for each of these regions. For CCVs to 91065-HMM-104 18 provide useful benefits the regions would have to be big enough or all of the colours will be incoherent. All of the colours will be coherent if the coherent threshold is made too low.
100811 The calculated features/fingerprints (e.g., CCVs, evenly/randomly highly subsampled representations) are compared to corresponding features/fingerprints for known intros and/or outros. The fingerprints for the known intros and outros could be calculated and stored in advance. The comparison of calculated features of the incoming video stream (statistical parameterized representations) to the stored fingerprints for known intros/outros will be discussed in more detail later.
[00821 Another method for detecting the presentation of an advertisement is automatic detection of the advertisement. Automatic detection techniques may include recognizing that the incoming video stream is a known advertisement. Recognition techniques may include comparing the incoming video stream to known video advertisements. This would require that each of a plurality of known video advertisements be stored in order to do the comparison. This would require a relatively large amount of storage and would likely require significant processing, including nonreal-time processing. Such storage and processing may not be feasible or practical, especially for real time detection systems.
Moreover, storing the known advertisements for comparison to the video programming could potentially be considered a copyright violation.
100831 Accordingly, a more practical automatic advertisement recognition technique may be used to calculate features (statistical parameters) about the incoming video stream and to compare the calculated features to a database of the same features (previously calculated) for known advertisements. The features may include colour histograms, CCVs, and/or evenly/randomly highly subsampled representations of the video stream as discussed above or may include other features such as text and object recognition, logo or other graphic overlay recognition, and unique spatial frequencies or patterns of spatial frequencies (e.g., salient points). The features may be calculated for images (e.g., frames) or portions of images (e.g., portions of frames). The features may be calculated for each image (e.g., all frames) or for certain images (e.g., every 1-frame in an MPEG stream). The combination of features for different images (or portions of images) make up a fingerprint. The fingerprint 91065-HMM-104 19 (features created from multiple frames or frame portions) may include unique temporal characteristics instead of, or in addition to, the unique spatial characteristics of a single image.
100841 The features/fingerprints for the known advertisements or other segments of programming (also referred to as known video entities) may have been pre-calculated and stored at the detection point. For the known advertisements, the fingerprints may be calculated for the entire advertisement so that the known advertisement fingerprint includes calculated features for the entire advertisement (e.g., every frame for an entire 30-second advertisement). Alternatively, the fingerprints may be calculated for only a portion of the known advertisements (e.g., 5 seconds). The portion should be large enough so that effective matching to the calculated fingerprint for the incoming video stream is possible.
For example, an effective match may require comparison of at least a certain number of images/frames (e.g., 10) as the false negatives may be high if less comparison is performed.
100851 An exemplary flowchart of the advertisement matching process is shown in Fig. 10.
Initially, the video stream is received 1000. The received video stream may be analog or digital video. The processing may be done in either analog or digital but is computationally easier as digital video (accordingly digital video may be preferred). Therefore, the video stream may be digitized 1010 if it is received as analog video. Features (statistical parameters) are calculated for the video stream 1020. The features may include CCVs, colour histograms, other statistical parameters, or a combination thereof. As mentioned above the features can be calculated for images or for portions of images. The calculated features/fingerprints are compared to corresponding fingerprints (e.g., CCVs are compared to CCVs) for known advertisements 1030. According to one embodiment, the comparison is made to the pre-stored fingerprints of a plurality of known advertisements (fingerprints of known advertisements stored in a database).
100861 The comparison 1030 may be made to the entire fingerprint for the known advertisements, or may be made after comparing to some portion of the fingerprints (e.g., 1 second which is 25 frames in PAL or 29.97 frames in NTSC, 35 frames which is approximately 1.4 seconds in PAL) that is large enough to make a determination regarding 91065-HMM-104 20 similarity. A determination is made as to whether the comparison was to entire fingerprints (or some large enough portion) 1040. If the entire fingerprint (or large enough portion) was not compared (1040 No) additional video stream will be received and have features calculated and compared to the fingerprint (1000-1030). If the entire fingerprint (or large enough portion) was compared (1040 Yes) then a determination is made as to whether the features of the incoming video stream meets a threshold level of similarity with any of the fingerprints 1050. If the features for the incoming video stream do not meet a threshold level of similarity with one of the known advertisement fingerprints (1050 No) then the incoming video stream is not associated with a known advertisement 1060. If the features for the incoming video stream meet a threshold level of similarity with one of the known advertisement fingerprints (1050 Yes) then the incoming video stream is associated with the known advertisement (the incoming video stream is assumed to be the advertisement) 1070.
[00871 Once it is determined that the incoming video stream is an advertisement, ad substitution may occur. Targeted advertisements may be substituted in place of all advertisements within an advertisement block. The targeted advertisements may be inserted in order or may be inserted based on any number of parameters including day, time, program, last time ads were inserted, and default advertisement (advertisement it is replacing). For example, a particular advertisement may be next in the queue to be inserted as long as the incoming video stream is not tuned to a particular program (e.g., a Nike ad may be next in the queue but may be restricted from being substituted in football games because Adidas is a sponsor of the football league). Alternatively, the targeted advertisements may only be inserted in place of certain default advertisements. The determination of which default ads should be substituted with targeted ads may be based on the same or similar parameters as noted above with respect to the order of targeted ad insertion. For example, beer ads may not be substituted in a bar, especially if the bar sells that brand of beer. Conversely, if a default ad for a competitor hotel is detected in the incoming video stream at a hotel the default ad should be replaced with a targeted ad.
8] The process described above with respect to Fig. 10 is focused on detecting advertisements within the incoming video stream. However, the process is not limited to advertisements. For example, the same or similar process could be used to compare 91065-HMM-104 21 calculated features for the incoming video stream to a database of fingerprints for known intros (if intros are used in the video delivery system) or known sponsorships (if sponsorships are used). If a match is detected that would indicate that an intro is being displayed and that an advertisement break is about to begin. Ad substitution could begin once the intro is detected. Targeted advertisements may be inserted for an entire advertisement block (e.g., until an outro is detected). The targeted advertisements may be inserted in order or may be inserted based on any number of parameters including day, time, program, and last time ads were inserted. Alternatively, the targeted advertisements may only be inserted in place of certain default advertisements. To limit insertion of targeted advertisements to specific default advertisements would require the detection of specific advertisements.
100891 The intro or sponsorship may provide some insight as to what ads may be played in the advertisement block. For example, the intro detected may be associated with (often played prior to) an advertisement break in a soccer game and the first ad played may normally be a beer advertisement. This information could be used to limit the comparison of the incoming video stream to ad fingerprints for known beer advertisements as stored in an indexed ad database or could be used to assist in the determination of which advertisement to substitute. For example, a restaurant that did not serve alcohol may want to replace the beer advertisement with an advertisement for a non-alcoholic beverage.
[00901 The level of similarity is based on the minimal number of substitutions, deletions and insertions of features necessary to align the features of the incoming video stream with a fingerprint (called approximates substring matching). It is regarded as a match between the fingerprint sequences for the incoming video stream and a known advertisement if the minimal (absolute or relative to matched length) distance between does not exceed a distance threshold and the difference in length of the fingerprints does not exceed a length difference threshold. Approximate substring matching may allow detection of commercials that have been slightly shortened or lengthened, or whose colour characteristics have been affected by different modes or quality of transmission.
91065-HMM-104 22 [00911 Advertisements only make up a portion of an incoming video stream so that continually calculating features for the incoming video stream 1020 and comparing the features to known advertisement fingerprints 1030 may not be efficient. The feature based techniques described above (e.g., volume increases, increase scene changes, monochrome images) may be used to detect the start of a potential advertisement (or advertisement block) and the calculating of features 1020 and comparing to known fingerprints 1030 may only be performed once a possible advertisement break has been detected. It should be noted that some methods of detecting the possibility of an advertisement break in the video stream such as an increase in scene changes, where scene changes may be detected by comparing successive CCVs, may in fact be calculating features of the video stream 1020 so the advertisement detection process may begin with the comparison 1030.
100921 The calculating of features 1020 and comparing to known fingerprints 1030 may be limited to predicted advertisement break times (e.g., between:10 and:20 after every hour).
The generation 1020 and the comparison 1030 may be based on the channel to which it is tuned. For example, a broadcast channel may have scheduled advertisement blocks so that the generation 1020 and the comparison 1030 may be limited to specific times. However, a live event such as a sporting event may not have fixed advertisement blocks so time limiting may not be an option. Moreover channels are changed at random times, so time blocks 10093] When intros are used, the calculated fingerprint for the incoming video stream may be continually compared to fingerprints for known intros stored in a database (known intro fingerprints). After an intro is detected indicating that an advertisement (or advertisement block) is about to begin, the comparison of the calculated fingerprint for the incoming video stream to fingerprints for known advertisements stored in a database (known advertisement fingerprints) begins.
4] If an actual advertisement detection is desired, a comparison of the calculated fingerprints of the incoming video stream to the known advertisement fingerprints stored in a database will be performed whether the comparison is continual or only after some event (e.g., detection of intro, certain time). Comparing the calculated fingerprint of the incoming 91065-HMM-104 23 video stream to entire fingerprints (or portions thereof) for all the known advertisement fingerprints 1030 may not be an efficient use of resources. The calculated fingerprint may have little or no similarity with a percentage of the known advertisement fingerprints and this difference may be obvious early in the comparison process. Accordingly, continuing to compare the calculated fingerprint to these known advertisement fingerprints is a waste of resources.
100951 An initial window (e.g., several frames, several regions of a frame) of the calculated fingerprint of the incoming video steam may be compared to an initial window of all of the known advertisement fingerprints (e.g., several frames, several regions). Only the known advertisement fingerprints that have less than some defined level of dissimilarity (e.g., less than a certain distance between them) proceed for further comparison. The initial window may be, for example, a certain period (e.g., 1 second), a certain number of images (e.g., first I-frames) , or a certain number of regions of a frame (e.g., 16 of 64 regions of frame).
10096] Fig. 11 shows an exemplary flowchart of an initial dissimilarity determination process. The video stream is received 1100 and may be digitized 1110 (e.g., if it is received as analog video). Features (statistical parameters) are calculated for the video stream (e.g., digital video stream) 1120. The features (fingerprint) may include CCVs, colour histograms, other statistical parameters, or a combination thereof. The features can be calculated for images or for portions of images. The calculated features (fingerprint) are compared to the fingerprints for known advertisements 1130 (known advertisement fingerprints). A determination is made as to whether the comparison has been completed for an initial period (window) 1140. If the initial window comparison is not complete (1140 No) the process returns to 1100-1130. If the initial window comparison is complete (1140 Yes) then a determination is made as to the level of dissimilarity (distance) between the calculated fingerprint and the known advertisement fingerprints exceeding a threshold 1150.
If the dissimilarity is below the threshold, the process proceeds to Fig. 10 (1090) for those fingerprints. For the known advertisement fingerprints that the threshold is exceeded (1150 Yes) the comparing is aborted.
91065-HMM-104 24 100971 Fig. 12 shows an exemplary initial comparison of the calculated fingerprint for an incoming stream 1200 versus initial portions of fingerprints 1210, 1220 for a plurality of known advertisements stored in a database (known advertisement fingerprints). For ease of understanding we will assume that each colour is limited to a single digit (two colours) , that each colour has the same digit so that a single number can represent each colour, and that the pixel grid is 25 pixels. The calculated fingerprint includes a CCV for each image 1202, 1204, and 1206 (e.g., frame, I-frame). The incoming video stream has a CCV calculated for the first three frames. The CCV for the first three frames of the incoming stream are compared to the associated portion 1212- 1216 and 1222-1226 (CCV5 of the first three frames) of each of the known advertisement fingerprints. The comparison includes summating the dissimilarity (e.g., calculated distance) between corresponding frames (e. g., distance Frame 1 + distance Frame 2 + distance Frame 3). The distance between the CCVs for each of the frames can be calculated in various manners including the sum of the absolute differences and the sum of the squared differences as described above. The sum of the absolute differences is utilized in Fig. 12. The difference ACCV 1230 between the incoming video steam 1200 and a first fingerprint (FP1) 1210 is 52 while the difference ACCV 1240 between the incoming video stream 1200 and the Nth fingerprint (FPN) 1220 is 8. Referring again to Fig. 11, if the predefined level of dissimilarity (distance) was 25, then the comparison for FP1 would not proceed further (e.g., 1160) since the level of dissimilarity exceeds the predefined level (e.g., 1150 Yes). The comparison for FPN would continue (1090) since the level of dissimilarity did not exceed the predefined level (e.g., 1150 No).
8] It is possible that the incoming video stream may have dropped the first few frames of the advertisement or that the calculated features (e. g., CCV) are not calculated for the beginning of the advertisement (e.g., first few frames) because, for example, the possibility of an advertisement being presented was not detected early enough. In this case, if the comparison of the calculated features for the first three frames is compared to the associated portion (calculated features of the first three frames) of each of the known advertisement fingerprints, the level of dissimilarity may be increased erroneously since the frames do not correspond. One way to handle this is to extend the length of thefingerprint window in order to attempt to line the frames up.
91065-HMM-104 25 100991 Fig. 13 shows an exemplary initial comparison of calculated features for an incoming stream 1310 versus an expanded initial portion 1320 of known advertisement fingerprints. For ease of understanding one can make the same assumptions as with regard to Fig. 12. The CCVs calculated for the first three frames 1312-1316 of the incoming video stream are compared by a sliding window to the first five frames 1322- 1329 for a stored fingerprint. That is, frames 1-3 of the calculated features of the incoming video stream are compared against frames 1-3 1322-1326 of the fingerprint, frames 2-4 1324-1328 of the fingerprint, and frames 3-5 1326-1329 of the fingerprint. By doing this it is possible to reduce or eliminate the differences that may have been caused by one or more frames being dropped from the incoming video stream. in the example of Fig. 13, the first two frames of the incoming stream were dropped. Accordingly, the difference 1350 between the calculated features of the incoming video stream equated best to frames 3-5 of the fingerprint.
1001001 If the comparison between the calculated features of the incoming stream and the fingerprint has less dissimilarity than the threshold, the comparison continues. The comparison may continue from the portion of the fingerprint where the best match was found for the initial comparison. In the exemplary comparison of Fig. 13, the comparison should continue between frame 6 (next frame outside of initial window) of the fingerprint and frame 4 of incoming stream. It should be noted that if the comparison resulted in the best match for frames 1-3 of the fingerprint, then the comparison may continue starting at frame 4 (next frame within the initial window) for the fingerprint.
1001011 To increase the efficiency by limiting the amount of comparisons being performed, the window of comparison may continually be increased for the known advertisement fingerprints that do not meet or exceed the dissimilarity threshold until one of the known advertisement fingerprints possibly meets or exceeds the similarity threshold.
For example, the window may be extended 5 frames for each known advertisement fingerprint that does not exceed the dissimilarity threshold. The dissimilarity threshold may be measured in distance (e.g., total distance, average distance/frame). Comparison is stopped if the incoming video fingerprint and the known advertisement fingerprint differ by more than a chosen dissimilarity threshold. A determination of a match would be based on a 91065-HMM-104 26 similarity threshold. A determination of the similarity threshold being met or exceeded may be delayed until some predefined number of frames (e.g., 20) have been compared to ensure a false match is not detected accidentally, which is more like with a small number of frames.
Like the dissimilarity threshold, the similarity threshold may be measured in distance. For example, if the distance between the features for the incoming video stream and the fingerprint differ by less than 5 per frame after at least 20 frames are compared it is considered a match.
1001021 Fig. 14 shows an exemplary expanding window comparison of the features of the incoming video stream and the features of the fingerprints of known advertisements. For the initial window W1 1410, the incoming video stream 1450 is compared to each of five known advertisement fingerprints, FP1 - FP5 1455-1475, respectively. After W1, the comparison of FP2 1460 is aborted because it exceeded the dissimilarity threshold. The comparison of the remaining known advertisement fingerprints continues for the next window W2 1420(e.g., next five frames, total of 10 frames). After W2, the comparison of FP1 1455 is aborted because it exceeded the dissimilarity threshold. The comparison of the remaining known advertisement fingerprints continues for the next window W3 1430 (e.g., next five frames, total of 15 frames). After W3, the comparison of FP3 1465 is aborted. The comparison of the remaining known advertisement fingerprints continues for the next window W4 1430 (e.g., next five frames, total of 20 frames). After W4, a determination can be made about the level of similarity. As illustrated, it was determined that FP5 1475 meets the similarity threshold.
[001031 If neither of the known advertisement fingerprints (FP4 or FP5) meet the similarity threshold, the comparison would continue for the known advertisement fingerprints that did not exceed the dissimilarity threshold. Those that meet the dissimilarity threshold would not continue with the comparisons. If more than one known advertisement fingerprint meets the similarity threshold then the comparison may continue until one of the known advertisement fingerprints falls outside of the similarity threshold, or the most similar known advertisement fingerprint is chosen. The comparison always ends if the length of the comparison reaches the length of the respective fingerprint.
91065-HMM-104 27 1001041 The windows of comparison in Fig. 14 (e.g., 5 frames) may have been a comparison of temporal alignment of the frames, a summation of the differences between the individual frames, a summation of the differences of individual regions of the frames, or some combination thereof. It should also be noted, that the window is not limited to a certain number of frames as illustrated and may be based on regions of a frame (e.g., 16 of the 32 regions the frame is divided into). If the window was for less than a frame, certain fingerprints may be excluded from further comparisons after comparing less than a frame. It should be noted that the level of dissimilarity may have to be high for comparisons of less than a frame so as not to exclude comparisons that are temporarily high due to, for example, misalignment of the fingerprints.
1001051 The calculated features for the incoming video stream do not need to be stored.
Rather, they can be calculated, compared and then discarded. No video is being copied or if the video is being copied it is only for a short time (temporarily) while the features are calculated. The features calculated for images can not be used to reconstruct the video, and the calculated features are not copied or if the features are copied it is only for a short time (temporarily) while the comparison to the known advertisement fingerprints is being performed.
1001061 As previously noted, the features may be calculated for an image (e.g., frame) or for a portion or portions of an image. Calculating features for a portion may entail sampling certain regions of an image as discussed above with respect to FIGs. 7-9 above. Calculating features for a portion of an image may entail dividing the image into sections, selecting a specific portion of the image or excluding a specific portion of the image. Selecting specific portions may be done to focus on specific areas of the incoming video stream (e.g., network logo, channel identification, program identification). The focus on specific areas will be discussed in more detail later. Excluding specific portions may be done to avoid overlays (e.g., network logo) or banners (e.g., scrolling news, weather or sport updates) that may be placed on the incoming video stream that could potentially affect the matching of the calculated features of the video stream to fingerprints, due to the fact that known advertisements might not have had these overlays and/or banners when the original library fingerprints were generated.
91065-HMM-104 28 100107] Fig. 15 shows an exemplary pixel grid 1500 divided into sections 1510, 1520, 1530, 1540 as indicated by the dotted line. The pixel grid 1500 consists of 36 pixels (a 6x6 grid) and a single digit for each colour with each pixel having the same number associated with each colour. The pixel grid 1500 is divided into 4 separate 3x3 grids 15 10-1540. A full image CCV 1550 is generated for the entire grid 1500, and partial image CCVs 1560, 1570, 1580, 1590 are generated for the associated sections 15 10-1540. A summation of the section CCVs 1595 would not result in the CCV 1550 as the pixels may have been coherent because they were grouped over section borders which would not be indicated in the summation CCV 1595. It should be noted that the summation CCV 1595 is simply for comparing to the CCV 1550 and would not be used in a comparison to fingerprints. When calculating CCVs for sections the coherence threshold may be lowered. For example, the coherence threshold for the overall grid was four and may have been three for the sections.
It should be noted that if it was lowered to 2 that the colour 1 pixels in the lower right corner of section pixel grid 1520 would be considered coherent and the CCV would change accordingly to reflect this fact.
1001081 If the image is divided into sections, the comparison of the features associated with the incoming video stream to the features associated with known advertisements may be done based on sections. The comparison may be based on a single section. Comparing a single section by itself may have less granularity than comparing an entire image.
1001091 Fig. 16 shows an exemplary comparison of two images 1600, 1620 based on the whole images 1600, 1620 and sections of the images 1640, 1660 (e.g., upper left quarter of image). Features (CCVs) 1610, 1630 are calculated for the images 1600, 1620 and reveal that the difference (distance) between them is 16 (based on sum of absolute values).
Features (CCVs) 1650, 1670 are calculated for the sections 1640, 1660 and reveal that there is no difference. The first sections 1640, 1660 of the images were the same while the other sections were different thus comparing only the features 1650, 1670 may erroneously result in not being filtered (not exceeding dissimilarity threshold) or a match (exceeding similarity threshold). A match based on this false positive would not be likely, as in a preferred embodiment a match would be based on more than a single comparison of calculated features for a section of an image in an incoming video stream to portions of known 91065-HMM-104 29 advertisement fingerprints. Rather, the false positive would likely be filtered out as the comparison was extended to further sections. In the example of Fig. 16, when the comparison is extended to other sections of the image or other sections of additional images the appropriate weeding out should occur.
100110] It should be noted that comparing only a single section may provide the opposite result (being filtered or not matching) if the section being compared was the only section that was different and all the other sections were the same. The dissimilarity threshold will have to be set at an appropriate level to account for this possible effect or several comparisons will have to be made before a comparison can be terminated due to a mismatch (exceeding dissimilarity threshold).
[00111] Alternatively, the comparison of the sections may be done at the same time (e.g., features of sections 1-4 of the incoming video stream to features of sections 1-4 of the known advertisements). As discussed above, comparing features of sections may require thresholds (e.g., coherence threshold) to be adjusted. Comparing each of the sections individually may result in a finer granularity than comparing the whole image.
1001121 Fig. 17 shows an exemplary comparison of a pixel grid 1700 (divided into sections 1710, 1720, 1730, 1740) to the pixel grid 1500 (divided into sections 1510, 1520, 1530, 1540) of Fig. 15. By simply comparing the pixel grids 1500 and 1700 it can be seen that the colour distribution is different. However, comparing a CCV 1750 of the pixel grid 1700 and the CCV 1550 of the pixel grid 1500 results in a difference (distance) of only 4. However, comparing CCVs 1760-1790 for sections 1710-1740 to the CCVs 1560-1590 for sections 10-1540 would result in differences of 12, 12, 12 and 4 respectively, for a total difference of 40.
1001131 It should be noted that FIGs. 15-17 depicted the image being divided into four quadrants of equal size, but is not limited thereto. Rather the image could be divided in numerous ways without departing from the scope (e.g., row slices, column slices, sections of unequal size and/or shape). The image need not be divided in a manner in which the whole image is covered. For example, the image could be divided into a plurality of random regions as discussed above with respect to FIGs. 7-9. In fact, the sections of an image that 91065-HMM-104 30 are analyzed and compared are only a portion of the entire image and could not be used to recreate the image so that there could clearly be no copyright issues. That is, certain portions of the image are not captured for calculating features or for comparing to associated portions of the known advertisement fingerprints that are stored in a database. The known advertisement fingerprints would also not be calculated for entire images but would be calculated for the same or similar portions of the images.
[00114] Figs. 11-14 discussed comparing calculated features for the incoming video stream to windows (small portions) of the fingerprints at a time so that likely mismatches need not be continually compared. The same basic process can be used with segments. If the features for each of the segments for an image are calculated and compared together (e.g., Fig. 17) the process may be identical except for the fact that separate features for an image are being compared instead of a single feature. If the features for a subset of all the sections are generated and compared, then the process may compare the features for that subset of the incoming video stream to the features for that subset of the advertisement fingerprints.
For the fingerprints that do not exceed the threshold level of dissimilarity (e.g., 1150 No of Fig. 11) the comparison window may be expanded to the additional segments of the image and fingerprints or may be extended to the same section of additional images. When determining if there is a match between the incoming video stream and a fingerprint for a known ad (e.g., 1050 of Fig. 10), the comparison is likely not based on a single section/region as this may result in erroneous conclusions (as depicted in Fig. 16). Rather, it is preferable if the determination of a match is made after sufficient comparisons of sections/regions (e.g., a plurality of sections of an image, a plurality of images).
[001151 For example, a fingerprint for an incoming video stream (query fingerprint q) may be based on an image (or portion of an image) and consist of features calculated for different regions (q, q2... q) of the image. The fingerprints for known advertisements (subject fingerprints s) may be based on images and consist of features calculated for different regions (Si, S2... Sm) of the images. The integer m (the number of regions in an image for a stored fingerprint) may be greater than the integer n (number of regions in an image of incoming video stream) if the fingerprint of the incoming video stream is not for a complete image. For example, regions may not be defined for boundaries on an incoming video 91065-HMM-104 31 stream due to the differences associated with presentation of images for different TVs and/or STBs. A comparison of the fingerprints would (similarity measure) be the sum for i = 1 to n of the minimum distance between qj and s, where i is the particular region. Alternatively the Earth Movers distance could be used. The Earth Movers distance is defined as the minimal changes necessary to transform the features in region q I, ..., qn into the reference features of region sI, ..., sm. This distance can usually be efficient compute by means of solving a special linear program called the optimal (partial) flow computation.
1001161 Some distance measures may not really be affected by calculating a fingerprint (q) based on less than the whole image. However, it might accidentally match the wrong areas since some features such as colour histograms may not encode any spatial distribution. For instance, areas which are visible in the top half of the incoming video stream and are used for the calculation of the query fingerprint might match an area in a subject fingerprint that is not part of the query fingerprint. This would result in a false match. Such situations can be handled by incorporation of spatial constraints to the matching process.
1001171 As previously noted, entire images of neither the incoming video stream nor the known advertisements (ad intros, sponsorship messages, etc. ) are stored, rather the portions of the images are captured so that the features can be calculated. Moreover, the features calculated for the portions of the images of the incoming video stream are not stored, they are calculated and compared to features for known advertisements and then discarded.
1001181 If the video stream is an analog stream and it is desired to calculate the features and compare to fingerprints in digital, then the video stream is converted to digital only as necessary. That is, if the comparisons to fingerprints are done on an image by image basis the conversion to digital will be done image by image. If the video stream is not having features generated (e.g., CCV) or being compared to at least one fingerprint then the digital conversion will not be performed. That is, if the features for the incoming video stream do not match any fingerprints so no comparison is being done or the incoming video stream was equated with an advertisement and the comparison is temporarily terminated while the ad is being displayed or a targeted ad is being substituted. If no features are being generated or compared then there is no need for the digital conversion. Limiting the amount of 91065-1-IMM-104 32 conversion from analog to digital for the incoming video stream means that there is less manipulation and less temporary storage (if any is required) of the analog stream while it is being converted.
1001191 When calculating the features for the incoming video stream certain sections (regions of interest) may be either avoided or focused on. Portions of an image that are excluded may be defined as regions of disinterest while regions that are focused on may be defined as regions of interest. Regions of disinterest and/or interest may include overlays, bugs, and banners. The overlays, bugs and banners may include at least some subset of channel and/or network logo, clock, sports scoreboard, timer, program information, EPG screen, promotions, weather reports, special news bulletins, close captioned data, and interactive TV buttons.
[001201 If a bug (e.g., network logo) is placed on top of a video stream (including advertisements within the stream) the calculated features (e.g. , CCVs) may be incomparable to fingerprints of the same video sequence (ads or intros) that were generated without the overlays. Accordingly, the overlay may be a region of disinterest that should be excluded from calculations and comparisons.
1001211 Figs. 18A and 18B illustrate exemplary images with different overlays. The two images 1810A, 1820A in Fig. 18A are taken from the same video stream. The first image 1810A has a channel logo overlay 1830A in the upper left corner and a promotion overlay I 840A in the upper right corner while the second image I 820A has no channel overlay and has a different promotion overlay I 850A. The two images 181 OB, I 820B in Fig. 1 8B are taken from the same video stream. The first image 181 OB has a station overlay 1 840B in the upper right corner and an interactive bottom 1 830B in the lower right corner while the second image 1 820B has a different channel logo I 850B in the upper right and no interactive button. Comparing fingerprints for the first set of images or the second set of images may result in a non- match due to the different overlays.
[00122] Fig. 19A shows an exemplary impact on pixel grids of an overlay being placed on a corresponding image. Pixel grid I900A is for an image and pixel grid 1910A is for the image with an overlay. For ease of explanation and understanding the pixel grids are limited 91065-HMM-104 33 to lOxlO (100 pixels) and each pixel has a single bit defining each of the RGB colours. The overlay was placed in the lower right corner of the image and accordingly a lower right corner 1920A of the pixel grid 1910A was affected. Comparing the features (e.g., CCVs) 1930A, 1940A of the pixel grids 1900A, 1910A respectively indicates that the difference (distance) 1950A is 12 (using sum of absolute values).
[001231 Fig. 1 9A shows a system where the calculated fingerprint for the incoming video stream and the known advertisement fingerprints stored in a local database were calculated for entire frames. According to one embodiment, the regions of disinterest (e.g., overlays, bugs or banners) are detected in the video stream and are excluded from the calculation of the fingerprint (e.g., CCVs) for the incoming video stream. The detection of regions of disinterest in the video stream will be discussed in more detail later. Excluding the region from the fingerprint will affect the comparison of the calculated fingerprint to the known advertisement fingerprints that may not have the region excluded.
100124] Fig. 19B shows an exemplary pixel grid 1900B with the region of interest 1910B (e.g., 1920A of Fig. 19A) excluded. The excluded region of interest 1910B is not used in calculating the features (e.g., CCV) of the pixel grid 1900B. As 6 pixels are in the excluded region of interest 1910B, a CCV 1920B will only identify 94 pixels. Comparing the CCV 1 920B having the region of interest excluded and the CCV I 930A for the pixel grid for the image without an overlay 1 900A results in a difference I 930B of 6 (using the sum of absolute values). By removing the region of interest from the difference (distance) calculation, the distance between the image with no overlay 1 900A and the image with the overlay removed 1900B was half of the difference between the image with no overlay 1900A and the image with the overlay 1910A.
100125] The regions of disinterest (ROD) may be detected by searching for certain characteristics in the video stream. The search for the characteristics may be limited to locations where overlays, bugs and banners may normally be placed (e.g., banner scrolling along bottom of image). The detection of the RODs may include comparing the image (or portions of it) to stored regions of interest. For example, network overlays may be stored and the incoming video stream may be compared to the stored overlay to determine if an 91065-HMM-104 34 overlay is part of the video stream. Comparing actual images may require extensive memory for storing the known regions of interest as well as extensive processing to compare the incoming video stream to the stored regions.
[00126] A ROD may be detected by comparing a plurality of successive images. If a group of pixels is determined to not have changed for a predetermined number of frames, scene changes or hard cuts then it may be a logo or some over type of overlay (e.g., logo, banner).
Accordingly, the ROD may be excluded from comparisons.
1001271 The known RODs may have features calculated (e.g., CCVs) and these features may be stored as ROD fingerprints. Features (e.g., CCVs) may be generated for the incoming video stream and the video stream features may be compared to the ROD fingerprints. As the ROD is likely small with respect to the image the features for the incoming video stream may have to be limited to specific portions (portions where the ROD is likely to be). For example, bugs may normally be placed in a lower right hand corner so the features will be generated for a lower right portion of the incoming video and compared to the ROD fingerprints (at least the ROD fingerprints associated with bugs) to determine if an overlay is present. Banners may be placed on the lower 10% of the image so that features would be generated for the bottom 10% of an incoming video stream and compared to the ROD fingerprints (at least the ROD fingerprints for banners).
[001281 The detection of RODs may require that separate fingerprints be generated for the incoming video stream and compared to distinct fingerprints for RODs. Moreover, the features calculated for the possible RODs for the incoming video stream may not match stored ROD fingerprints because the RODs for the incoming video stream may be overlaid on top of the video stream so that the features calculated will include the video stream as well as the overlay where the known fingerprint may be generated for simply the overlay or for the overlay over a different video stream. Accordingly it may not be practical to determine RODs in an incoming video stream.
1001291 The generation of the fingerprints for known advertisements as well as for the incoming video stream may exclude portions of an image that are known to possibly contain RODs (e.g., overlays, banners). For example as previously discussed with respect to Fig. 91065-HMM-104 35 I 9B, a possible ROD 191 OB may be excluded from the calculation of the fingerprint for the entire frame. This would be the case for both the calculated fingerprint of the incoming video stream as well as the known advertisement fingerprints stored in the database.
Accordingly, the possible ROD would be excluded from comparisons of the calculated fingerprint and the known advertisement fingerprints.
1001301 The excluded region may be identified in numerous manners. For example, the ROD may be specifically defined (e.g., exclude pixels 117128). The portion of the image that should be included in fingerprinting may be defined (e.g., include pixels 1-116 and 129- 150). The image may be broken up into a plurality of blocks (e.g., 16x16 pixel grids) and those blocks that are included or excluded may be defined (e.g., include regions 1-7 and 9- 12, exclude region 6). A bit vector may be used to identify the pixels and/or blocks that should be included or excluded from the fingerprint calculation (e.g., 0101100 may indicate that blocks 2, 4 and 5 should be included and blocks 1, 3, 6 and 7 are excluded).
1001311 The RODs may also be excluded from sections and/or regions if the fingerprints are generated for portions of an image as opposed to an entire image as illustrated in Fig. 1 9B.
1001321 Fig. 20 shows an exemplary image 2000 to be fingerprinted that is divided into four sections 2010-2040. The image 2000 may be from an incoming video stream or a known advertisement, intro, outro, or channel identifier. It should be noted that the sections 2010- 2040 do not make up the entire image. That is, if each of these sections is grabbed in order to create the fingerprint for the sections there is clearly no copyright issues associated therewith as the entire image is not captured and the image could not be regenerated based on the portions thereof. Each of the sections 20 10-2040 is approximately 25% of the image 2000, however the section 2040 has a portion 2050 excluded therefrom as the portion 2050 may be associated with where an overlay is normally placed.
[001331 Fig. 21 shows an exemplary image 2100 to be fingerprinted that is divided into a plurality of regions 2110 that are evenly distributed across the image 2100. Again it should be noted that the image 2100 may be from an incoming video stream or a known advertisement and that the regions 2100 do not make up the entire image. A section 2120 of 91065-FIMM-104 36 the image may be associated with where a banner may normally be placed, thus this portion of the image would be excluded. Certain regions 2130 fall within the section 2120 so they may be excluded from the fingerprint or those regions 2130 may be shrunk so as to not fall within the section 2120.
1001341 Ad substitution may be based on the particular channel that is being displayed.
That is, a particular targeted advertisement may not be able to be displayed on a certain channel (e.g., an alcohol advertisement may not be able to be displayed on a religious programming channel). In addition, if the local ad insertion unit is to respond properly to channel specific cuetones that are centrally generated and distributed to each local site, the local unit has to know what channel is being passed through it. An advertisement detection unit may not have access to data (e.g., specific frequency, metadata) indicating identity of the channel that is being displayed. Accordingly the unit will need to detect the specific channel. Fingerprints may be defined for channel identification information that may be transmitted within the video stream (e.g., channel logos, channel banners, channel messages) and these fingerprints may be stored for comparison.
[00135] When the incoming video stream is received an attempt to identify the portion of the video stream containing the channel identification information may be made. For example, channel overlays may normally be placed in a specific location on the video stream so that portion of the video stream may be extracted and have features (e.g. CCV) generated therefore. These features will be compared to stored fingerprints for channel logos. As previously noted, one problem may be the fact that the features calculated for the region of interest for the video stream may include the actual video stream as well as the overlay.
Additionally, the logos may not be placed in the same place on the video stream at all times so that defining an exact portion of the video stream to calculate features for may be difficult.
[00136] Channel changes may be detected and the channel information may be detected during the channel change. The detection of a channel change may be detected by comparing features of successive images of the incoming video stream and detecting a sudden and abrupt change in features. In digital programming a change in channel often 91065-HMM-104 37 results in the display of several monochrome (e.g., blank, black, blue) frames while the new channel is decoded.
[001371 The display of these monochrome frames may be detected in order to determine that a channel change is occurring. The display of these monochrome frames may be detected by calculating a fingerprint for the incoming video stream and comparing it to fingerprints for known channel change events (e.g., monochrome images displayed between channel changes). When channels are changed, the channel numbers may be overlaid on a portion of the video stream. Alternatively, a channel banner identifying various aspects of the channel being changed to may be displayed. The channel numbers and/or channel banner may normally be displayed in the same location. As discussed above with respect to the RODs, the locations on the images that may be associated with a channel overlay or channel banner may be excluded from the fingerprint calculation. Accordingly, the fingerprints for either the incoming video stream or the channel change fingerprint(s) stored in the database would likely be for simply a monochrome image.
[001381 An exemplary channel change image 2200 is show in Figs. 22A and 22B. The image during a channel change is a monochrome frame 2210 with the exception of the channel change banner 2220 along the bottom of the image. Accordingly, as shown in Fig. 22A, the entire channel banner 2220 plus some tolerance may be identified as a region of disinterest 2230 to be excluded from comparisons of the features generated for the incoming video stream and the stored fingerprints.
[001391 After, the channel change has been detected (whether based on comparing fingerprints or some other method), a determination as to what channel the system is tuned to can be made. The determination may be based on analyzing channel numbers overlaid on the image or the channel banner. The analysis may include comparing to stored channel numbers and/or channel banners. As addressed above, the actual comparison of images or portions of images requires large amounts of storage and processing and may not be possible to perform in real time.
[00140] Alternatively, features/fingerprints may be calculated for the incoming video stream and compared to fingerprints for known channel identification data. As addressed 91065-HMM-104 38 above, calculating and comparing fingerprints for overlays may be difficult due to the background image. Accordingly, the calculation and comparison of fingerprints for channel numbers will focus on the channel banners. it should be noted that the channel banner may have more data than just the channel name or number. For example, it may include time, day, and program details (e.g., title, duration, actors, rating). The channel identification data is likely contained in the same location of the channel banner so that only that portion of the channel banner will be of interest and only that portion will be analyzed.
1001411 Fig. 22B shows that the channel identification data 2240 is in the upper left hand corner of the channel banner 2220. Accordingly, this area containing the channel identification data 2240 may be defined as a region of interest. Fingerprints for the relevant portion of channel banners for each channel will be generated and will be stored in a database. The channel identification fingerprints may be stored in same database as the known advertisement (intro, outro, sponsorship message) fingerprints or may be stored in a separate database. If stored in the same database the channel ident fingerprints are likely segregated so that the incoming video stream is only compared to these fingerprints when a channel change has been detected.
1001421 It should be noted that different televisions and/or different set-top boxes may display an incoming video stream in slightly different fashions. This includes the channel change banners 2220 and the channel number 2240 in the channel change banner being in different locations or being scaled differently. When looking at an entire image or multiple regions of an image this difference may be negligible in the comparison. However, when generating channel identification fingerprints for an incoming video stream and comparing the calculated channel identification fingerprints to known channel identification fingerprints, the difference in display may be significant.
100143] Fig. 23 shows an image 2300 with expected locations of a channel banner 2310 and channel identification information 2320 within the channel banner 2310 identified. The channel identification information 2320 may not be in the exact location expected due to parameters (e.g., scaling, translation) associated with the specific TV and/or STB (or DVR) used to receive and view the programming. For example, it is possible that the channel 91065-I-IMM-104 39 identification information 2320 could be located within a specific region 2330 that is greatly expanded from the expected location 2320.
1001441 In order to account for the possible differences, scaling and translation factors must be determined for the incoming video stream. These factors can be determined by comparing location of the channel banner for the incoming video stream to the reference channel banner 2310. Initially a determination will be made as to where an inner boundary between the monochrome background and the channel banner is. Once the inner boundary is determined, the width and length of the channel banner can be determined. The scale factor can be determined by comparing the actual dimensions to the expected dimensions.
The scale factor in x direction is the ratio of the actual width of the channel banner and the reference width, the scale factor in y direction is the ratio of the actual height of channel banner and the reference height. The translation factor can be determined based on comparing a certain point of the incoming stream to the same reference point (e.g., top left corner of the inner boundary between the monochrome background and the channel banner).
1001451 The reference channel banner banners for the various channels are scaled and translated during the start-up procedure to the actual size and position. The translation and scaling parameter are stored so they are known. They can be used to scale and translate the incoming stream so that an accurate comparison to the reference material (e.g., fingerprints) can be made. The scaling and translation factors have been discussed with respect to the channel banner and channel identification information but are in no way limited thereto.
Rather, these factors can be used to ensure an appropriate comparison of fingerprints of the incoming video stream to known fingerprints (e.g., ads, ad intros, ad outros, channel idents, sponsorships). These factors can also be used to ensure that regions of disinterest or regions of interest are adequately identified.
1001461 Alternatively, rather than creating a fingerprint for the channel identifier region of interest the region of interest can be analyzed by a text recognition system that may recognize the text associated with the channel identification data in order to determine the associated channel.
91065-HMM-104 40 1001471 Some networks may send messages (channel ident') identifying the network (or channel) that is being displayed to reinforce network (channel) branding. According to one embodiment, these messages are detected and analyzed to determine the channel. The analysis may be comparing the message to stored messages for known networks (channels).
Alternatively, the analysis may be calculating features for the message and comparing to stored features for known network (channel) messages/idents. The features may be generated for an entire video stream (entire image) or may be generated for a portion containing the branding message. Alternatively, the analysis may include using text recognition to determine what the message says and identifying the channel based on that.
[00148] A maximum break duration can be identified and is the maximum amount of time that the incoming video stream will be preempted. After this period of time is up, insertion of advertisements will end and return to the incoming video stream. In addition a pre-outro time is identified. A pre-outro is a still or animation that is presented until the max break duration is achieved or an outro is detected whichever is sooner. For example, the maximum break duration may be defined as 1:45 and the pre-outro may be defined as:15.
Accordingly, three 30 second advertisements may be displayed during the first 1:30 of the ad break and then the pre-outro may be displayed for the remaining:15 or until an outro is detected, whichever is sooner. The maximum break duration and outro time are defined so as to attempt to prevent targeted advertisements from being presented during programming.
If an outro is detected while advertisements are still being inserted (e. g., before the pre-outro begins) a return to the incoming video stream may be initiated. As previously discussed sponsorship messages may be utilized along with or in place of outros prior to return of programming. Detection of a sponsorship message will also cause the return to the incoming video stream. Detection of programming may also cause the return to programming.
1001491 A minimum time between detection of a video entity (e.g., ad, ad intro) that starts advertisement insertion and ability to detect a video entity (e.g., ad outro, programming) that causes ad insertion to end can be defined (minimum break duration). The minimum break duration may be beneficial where intros and outros are the same. The minimum break duration may be associated with a shortest advertisement period (e.g., 30 seconds). The 91065-1-IMM-104 41 minimum break duration would prevent the system from detecting an intro twice in a relatively short time frame and assuming that the detection of the second was an outro and accordingly ending insertion of an advertisement almost instantly.
[001501 A minimum duration between breaks (insertions) may be defined, and may be beneficial where intros and outros are the same. The duration would come into play when the maximum break duration was reached and the display of the incoming video steam was reestablished before detection of the outro. If the outro was detected when the incoming video stream was being displayed it may be associated with an intro and attempt to start another insertion. The minimum duration between breaks may also be useful where video entities similar to know intros and/or outros are used during programming but are not followed by ad breaks. Such a condition may occur during replays of specific events during a sporting event, or possibly during the beginning or ending of a program, when titles and/or credits are being displayed.
1001511 The titles at the beginning of a program may contain subsequences or images that are similar to know intros and/or outros. In order to prevent the detection of these sub- sequences or images from initiating an ad break, the detection of programming can be used to suppress any detection for a predefined time frame (minimum duration after program start). The minimum duration after program start ensures that once the start of a program is detected that sub-sequences or images that are similar to know intros and/or outros will not interrupt programming.
1001521 The detection of the beginning of programming (either the actual beginning of the program or the return of programming after an advertisement break) may end the insertion of targeted advertisements or the pre-outro if the beginning of programming is identified before the maximum break duration is expired or an outro is identified.
[001531 Alternatively, if an outro, sponsorship message or programming is detected during an advertisement being inserted, the advertisement may be completed and then a return to programming may be initiated.
91065-l-IMM-104 42 1001541 The detection of the beginning of programming may be detected by comparing a calculated fingerprint of the incoming video stream with previously generated fingerprints for the programming. The fingerprints for programming may be for the scenes that are displayed during the theme song, or a particular image that is displayed once programming is about to resume (e.g., an image with the name of the program). The fingerprints of programming and scenes within programming will be defined in more detail below.
1001551 Once it is determined that programming is again being presented on the incoming video stream the generation and comparison of fingerprints may be halted temporarily as it is unlikely that an advertisement break be presented in a short time frame.
[001561 The detection of a channel change or an electronic program guide (EPG) activation may cause the insertion of advertisements to cease and the new program or EPG to be displayed.
1001571 Fingerprints can be generated for special bulletins that may preempt advertising in the incoming video stream and correspondingly would want to preempt insertion of targeted advertising. Special bulletins may begin with a standard image such as the station name and logo and the words special bulletin or similar type slogan. Fingerprints would be generated for each known special bulletin (one or more for each network) and stored locally. If the calculated fingerprint for an incoming video stream matched the special bulletin while targeted advertisement or the pre-outro was being displayed, a return to the incoming video stream would be initiated.
1001581 While methods for local detection of advertisements or advertisement intros and local insertion of targeted advertisements have been described, the methods described are not limited thereto. For example, certain programs may be detected locally. The local detection of programs may enable the automatic recording of the program on a digital recording device such as a DVR. Likewise, specific scenes or scene changes may be detected. Based on the detection of scenes a program being recorded can be bookmarked for future viewing ease.
91065-HMM-104 43 1001591 To detect a particular program, fingerprints may be established for a plurality of programs (e.g., video that plays weekly during theme song, program title displayed in the video stream) and calculated features for the incoming video stream may be compared to these fingerprints. When a match is detected the incoming video stream is associated with that program. Once the association is made, a determination can be made as to whether this is a program of interest to the user. If the detected program is a program of interest, a recording device may be turned on to record the program. The use of fingerprints to detect the programs and ensure they are recorded without any user interaction is an alternative to using the electronic or interactive program guide to schedule recordings. The recorded programs could be archived and indexed based on any number of parameters (e.g., program, genre, actor, channel, network).
1001601 Scene changes can be detected as described above through the matching of fingerprints. If during recording of a program scene changes are detected, the change in scenes can be bookmarked for ease of viewing at a later time. If specific scenes have already been identified and fingerprints stored for those scenes, fingerprints could be generated for the incoming video stream and compared against scene fingerprints. When a match is found the scene title could bookmark the scene being recorded.
[00161J The fingerprints stored locally may be updated as new fingerprints are generated for any combination of ads, ad intros, channel banners, program overlays, programs, and scenes. The updates may be downloaded automatically at certain times (e.g., every night between I and 2 am), or may require a user to download fingerprints from a certain location (e.g., website) or any other means of updating. Automated distribution of fingerprints can also be utilized to ensure that viewers local fingerprint libraries are up-to-date.
1001621 The local detection system may track the features it generates for the incoming streams and if there is no match to a stored fingerprint, the system may determine that it is a new fingerprint and may store the fingerprint. For example, if the system detects that an advertisement break has started and generates a fingerprint for the ad (e.g., new Pepsi ad) and the features generated for the new ad are not already stored, the calculated features may be stored for the new ad.
91065-HMM-104 44 1001631 In order to ensure that video segments (and in particular intros and advertisements) are detected reliably, regions of interest in the video programming are marked and regions outside of the regions of interest are excluded from processing. The marking of the regions of interest is also used to focus processing on the areas that can provide information that is useful in determining to which channel the unit is tuned. In one instance, the region of interest for detection of video segments is the region that is excluded for channel detection and visa versa. In this instance the area that provides graphics, icons or text indicating the channel is examined for channel recognition but excluded for video segment recognition.
1001641 Both feature based detection and recognition based detection methods can be applied to video streams to recognize video entities as shown in Fig. 24. Feature based detection methods 2400 can include, but are not limited to, the detection of monochrome frames, the detection of scene break either through hard cuts or fades or the detection of action either through measurement of edge change ratios or motion vector lengths.
Recognition methods 2410 are based on fingerprints. Fingerprints can be created using both colour histograms or CCVs based on the entire image or can be generated based on subsampled representations where the subsampling occurs either spatially or temporally.
Although Fig. 24 shows the use of colour histograms and CCVs, a number of other statistical parameters associated with the images or portions thereof can be used to create fingerprints. Video entities can be considered to be either known segments or sections of video which are of interest for automatic detection. For example, advertisements, intros to sets of advertisements, promotions, still images representing advertisements, and other types of inserted advertising materials are video entities. Scene breaks including scene breaks leading to advertisements or scene breaks simply placed between scenes of the programming can also be considered to be video entities. As such video entities represent portions of the video stream that content providers may desire to keep integral to the video stream but which automatic detection equipment may be able to recognize for alteration of the video stream contrary to the wishes of the content provider.
1001651 The statistical properties of the compressed digital stream can also be used for video entity detection. Compression of a digital video stream can comprise spatial and temporal compression techniques. Fig. 25 shows spatial compression of a digital video 91065-HMM-104 45 image, where an image frame 2510 in an uncompressed state is subsequently transformed 2515 into a frequency domain representation. As will be understood by those skilled in the art, the image 2510 can be either a frame representing complete information within the image or a prediction error frame that contains only partial information related to movement of macro blocks. The spatial compression techniques can be applied to both full frames of information as well as to prediction error frames. The transformed image in the frequency domain can be represented in a table of coefficients 2520, ranging from the DC coefficient 2530 in the upper left hand corner to highest frequency component coefficients 2540 in the lower right hand corner, where vertical and horizontal frequencies vary along the X and Y axis, respectively. A variety of techniques may be used to transform 2515 the image from the spatial domain into the frequency domain including Discrete Cosine Transform (DCT), wavelet transforms, and a variety of other transforms which will result in frequency coefficients that represent the image.
1001661 The coefficients 2520 are scanned 2550 and weighted 2565 such that particular coefficients are given more importance than other coefficients. This is due to the fact that the human eye will process the image in a particular manner and that certain coefficients may be more important than others and should thus be weighted accordingly for subsequent compression steps and transmission. A quantizing step 2570 is used to reduce the length of some of the coefficients. Because some of the coefficients can be less important to the human eye, they are represented with fewer bits and thus a lower accuracy, which increases what is termed as the quantizing error. This technique can be applied to coefficients that are of less importance (usually the higher frequency components) and reduce the amount of information which needs to be transmitted, thus achieving a coding gain or compression but which do not perceivably affect the image.
1001671 Once the image is appropriately weighted 2565 and quantized 2570, it can be further encoded 2575 and output for either temporal coding, or transmission if no temporal coding is being utilized as is also show in Fig. 25. For example, as will be understood to those skilled in the art, a Huffman coding algorithm (or arithmetic coding) can be used to further encode the compressed image data in the spatial domain. The quantized coefficients 2585 representing an uncompressed digital image can be represented all together in a one 91065-I-IMM-104 46 dimensional sequence. In this sequence, each non-zero coefficient is known as a "size", and a number of successive zero value coefficients preceding a size value is known as a "run".
Fig. 26 shows a table 2610 where size and run length parameters are converted to a particular Huffman code word 2620 for transmission. The particular code word to be transmitted is dependent on both the number of zeros that have previously appeared and the particular coefficient that is then needed to be transmitted. Although that table 2610 represents a particular assignment of codes, any number of coding schemes can be used, those coding schemes being able to efficiently code the information such that transmission bandwidth is minimized and such that the information is appropriately transmitted. In some instances, codes will be used that are particularly robust and can survive loss of certain bits of information, while in other instances the goal will simply be that of compression.
1001681 The entry in the size column of table 2610 is a coefficient that in some instances is a 1010 coefficient 2630 and which represents a pattern for the End of Blocks (EOB) symbol.
This code word is assigned to the zero/zero entry in the table since the code of zero/zero has no meaningful run-size interpretation. Use of this code word for end of block allows easy determination of the end of a block in the spatial compressed digital video stream.
1001691 As is also shown in Fig. 25, there are statistical parameters related to the coefficients 2520 after transformation as well as statistical parameters related to the weighted coefficients 2560. The statistical parameters of the coefficients or weighted coefficients can be used as a method of understanding the image and, in particular, of fingerprinting the image. For example, an image that has been compressed will have a certain histogram of coefficients 2570 that can be used as a fingerprint. Likewise, a histogram of the weighted coefficients 2580 can be used to create a fingerprint for an image.
In the event that this fingerprint of the statistical parameters of compression are recorded and stored, the incoming video can be checked against the stored video by comparing the statistical parameters of the incoming video with the statistical compression parameters of the stored video.
1001701 The statistical parameters of the code words can also be used for fingerprinting.
Fig. 28 shows the use of code word histograms for fingerprinting by showing an actual 91065-HMM-l04 47 possible transmission stream 2810 with an end of block 2820 followed by a series of code words 2830, followed by another end of block 2860 followed by a series of code words 2850. Other statistical parameters that can be used in addition to those previously mentioned include the time separation between the end of blocks 2870, the histogram of the end of block separation 2880 and the code word histogram 2890. There will be statistical variations such that a video segment of several seconds or 30 seconds in length will have a particular code word histogram which can be potentially used to identify that video segment.
In some instances looking at a small portion of the video segments such as a few milliseconds of video sequence will create a code word histogram that is sufficiently unique to allow that code word histogram to be used for either a full or partial identification of that video sequence.
1001711 A spatially transformed and compressed digital video sequence can be further temporally compressed by removing redundant information in time and creating representations that are of only a partial frame, but allow reconstruction of entire frame. For example in MPEG-2, I-frames are used in conjunction with B- (bidirectional) and P- (predictive) frames to allow efficient transmission of the video without requiring transmission of the full video image in each and every frame. Fig. 29 shows a video sequence in which temporal compression has taken place. In a frame sequence 2910, an I- frame can be followed by a number of B-frames and P-frame, other B-frames, P-frames and then a subsequent I frame. The actual image that is produced is based on a reconstruction from the B-frames and P-frames in conjunction with the I-frames or based on the I-frames alone. The statistically relevant parameters that occur include the separation of the I-frames 2920 as well as the actual statistics of the B-, P- and I-frames between I frames. As such, a statistically relevant fingerprint based on the compression of the video can be created by looking at a histogram ofthe I-frame separation 2930 or of the number of B-, P-and I- frames within a given time segment 2940. For example, it is possible to measure on a sub frame or full frame basis the statistics of that frame and compare those statistics against statistics of known video sequences which have been fingerprinted. In the event that there is sufficient similarity between the incoming statistics of the compressed incoming video sequence, they can be compared against the statistics of the known sequences and a determination made that the sequences match or that additional analysis needs to be 91065-HMM-104 48 performed in the uncompressed domain to correctly identify the video sequence. Although the ability to use frame histograms will depend to some extent on the use of similar encoders, there are certain frame statistics that will have strong similarities between different encoders.
1001721 The statistics associated with the motion vectors can also be analyzed and used as the basis for a fingerprint. In particular, the statistics of the magnitude and direction of the motion vectors can provide the basis for a unique characterization and fingerprinting of a frame.
1001731 In one embodiment, it is possible to generate spatially reduced images from MPEG-I, MPEG-2, MPEG-4, VC-1 (video codec based on Microsoft Windows Media Video version 9) or other compressed digital video streams. These spatially reduced images can be derived directly from 1-frames, or approximated from P-frames and B-frames. In one embodiment the approximation from P-frames and B-frames is accomplished by employing motion information to derive the DC images. A zero-order approximation can be obtained by taking the DC value from the block in the P-frame or Bframe that has the most overlap with a reference block, the reference block being the current block of interest. A first-order approximation can be determined by weighing the contributions from the 4 neighboring DC values with the ratio of overlaps of the reference block with each of the neighboring blocks.
These techniques can be applied to generate DC images from frames of compressed video.
Once DC images have been obtained, it is possible to generate fingerprints from those DC images, and to compare those fingerprints against stored fingerprints. Because the processing can be performed at high speeds, it is possible to generate fingerprints at rates equal to or exceeding 1,000 frames per second.
1001741 In one embodiment, shown in Fig.27, synchronization points are determined within a compressed digital video stream. Upon detection of a synchronization point 2720 after receiving a stream 2710, a fingerprint comprising of a statistical parameterized representation of the compressed stream is created for a window following the synchronization point 2730. The fingerprint of the incoming stream is compared with a plurality of fingerprints based on previously parameterized known video entities 2740. If the 91065-HMM-104 49 parameterized representation of the incoming stream has at least a threshold level of similarity 2750 with a particular fingerprint in the plurality of fingerprints then detection of the known video entity within the incoming stream is accomplished 2760. To increase the level of confidence for detection of the known video entity, further processing of the uncompressed video and subsequent comparison to a plurality of fingerprints can be performed. When the level of confidence of known video entity detection is sufficiently high, either with or without additional processing in the uncompressed domain, further action, such as insertion of a targeted advertisement into a presentation stream, can be accomplished.
100175] Synchronization points are determined from time stamps or clock references embedded within a compressed digital video stream. It will be understood by one skilled in that art, that synchronization points for digital streams encoded using different standards can be obtained from time information encoded within those streams. In one embodiment, a synchronization point 3090 in an MPEG-2 steam 3070 can be determined as shown in Fig. 30. The compressed steam 3070 may contain time stamps that indicate to the decoder 3085 to decode and uncompress the compressed video data to create a presentation scene and time stamps which indicate the decoded, uncompressed scene is ready to be output. A DTS (decoding time stamp) 3080 indicates when a presentation scene is to be created and a PTS (presentation time stamp) 3075 indicates when a presentation scene is to be output.
Additionally, the decoder 3085 can also determine a synchronization point 3090 based on a DTS and a PTS contained within the stream.
[001761 In an alternate embodiment, a synchronization point 3060 is determined from time stamps or clock references embedded within a compressed digital video stream in the MPEG-4 format 3010 as shown in Fig. 30. The compressed steam 3010 contains time stamps in the BIFS commands that indicate to the decoder to decode and uncompress the compressed video data to create a presentation scene 3020 and time stamps which indicate the decoded, uncompressed scene is ready to be output 3030, or likewise, terminate output of a presentation scene 3040 in the presentation stream 3050. Fig. 30 shows a synchronization point associated with the command to create a scene from the compressed 91065-HMM-104 50 steam, although determination of synchronization points within the stream are not limited to this association with a scene creation command.
1001771 Based on the detection of synchronization points, fingerprints can be immediately generated from the statistical parameters of the compressed digital stream and compared against fingerprints of the statistical parameters in a stored library. One advantage of the approach described herein is that the ability to detect synchronization points within the compressed digital video stream provides for partial temporal alignment of the fingerprints generated in the incoming video stream with the fingerprints in the library. As a result of this partial temporal alignment, it is no longer necessary to completely cross-correlate frame or sub-frame fingerprints for each in-coming against each and every frame or sub-frame fingerprint of a stored frame. Instead, the timing obtained from the compressed digital video stream is used to identify potential advertisements, and the comparison is made between the beginning of what is believed to be an advertisement and the beginning of an actual stored advertisement. As such, the computational requirements for fingerprint comparison are reduced.
1001781 In one embodiment, based on the detection of a synchronization point, fingerprints can be immediately generated from the statistical parameterized representations of the compressed digital stream, including at least some subset of coefficient histograms, weighted coefficient histograms, code word histograms, histograms of separation of end blocks, histograms of I frame separations, the number of B, P, and I frames within a time segment, motion compensation vectors, and spatially reduced coefficients.
1001791 In one embodiment, based on the detection of a synchronization point, fingerprints can be immediately generated from the DC coefficients of the I-frames which represent a low resolution images of the image represented by the I frame. Based on the detection of the synchronization points and generation of DC coefficients from the compressed digital video stream, a series of fingerprints can be generated and compared against fingerprints in a stored library.
1001801 In an alternate embodiment, the stored fingerprints are based on both AC and DC coefficients in a linear mixture and do not contain recognizable images. The incoming 91065-HMM-104 51 compressed video stream is used to generate similar fingerprints that are linear combinations of AC and DC coefficients which are compared against the stored fingerprints. In this embodiment no actual images exist or are stored in the fingerprinting system, thus minimizing copyright issues.
1001811 In another embodiment, video entity recognition is performed in the compressed digital video domain but additional processing is utilized based on the uncompressed images to confirm the presence of an advertisement. In this embodiment, the dual processing (compressed and uncompressed domains) provides for a higher reliability of video entity or advertisement recognition.
1001821 The present method and system allows for a fingerprinting of video sequences based on the statistical parameters of compression. The fingerprints that are created are then compared against the statistical parameters of an incoming video stream to detect a known video sequence. These parameters include the statistical parameters generated both in the spatial compression as well as that in the temporal compression. The spatial compression parameters include coefficient histograms, weighting histograms, quantization statistics as well as any other statistics related to the spatial compression process. Similarly in the temporal domain, the statistics related to the creation of the temporal compression including the number of I, B and P frames, the spacing between I frames, and other parameters related to the motion compensation can all be used to create fingerprints and subsequently recognize video sequences. Motion compensation vectors and the statistics thereof can be used as a means of creating a fingerprint and subsequent comparison between incoming motion compensation vectors and the fingerprint to determine if the images match. Fingerprints can also be obtained from spatially reduced images obtained from the DC coefficients, or similarly a linear combination of DC and AC coefficients, of the compressed digital video image.
1001831 The techniques described herein can be applied to a variety of video compression techniques including, but not limited to, MPEG-i, MPEG2 and MPEG-4. In MPEG-4, a number of additional statistical parameters are available including the parameters relating to video objects, still texture objects, mesh objects and face and body animation objects. The 91065-HMM-104 52 statistics related to those objects include differential encoding statistics including the vectors and residuals, the statistics related to what are known as the video object planes and other parameters related specific to MPEG-4 encoding. These parameters can be derived from the compression and decompression of the MPEG-4 and be used to create fingerprints and to recognize those fingerprints just as applied to MPEG2.
1001841 It is noted that any and/or all of the above embodiments, configurations, and/or variations of the present invention described above can be mixed and matched and used in any combination with one another. Moreover, any description of a component or embodiment herein also includes hardware, software, and configurations which already exist in the prior art and may be necessary to the operation of such component(s) or embodiment(s).
1001851 All embodiments of the present invention, can be realized in on a number of hardware and software platforms including microprocessor systems programmed in languages including (but not limited to) C, C++, Perl, HTML, Pascal, and Java, although the scope of the invention is not limited by the choice of a particular hardware platform, programming language or tool.
1001861 The present invention may be implemented with any combination of hardware and software. If implemented as a computer-implemented apparatus, the present invention is implemented using means for performing all of the steps and functions described above.
[001871 The present invention can be included in an article of manufacture (e.g., one or more computer program products) having, for instance, computer useable media. The media has embodied therein, for instance, computer readable program code means for providing and facilitating the mechanisms of the present invention. The article of manufacture can be included as part of a computer system or sold separately.
[00188] The many features and advantages of the invention are apparent from the detailed specification. Thus, the appended claims are to cover all such features and advantages of the invention that fall within the true spirit and scope of the invention. Furthermore, since numerous modifications and variations will readily occur to those skilled in the art, it is not 91065-HMM-104 53 desired to limit the invention to the exact construction and operation illustrated and described. Accordingly, appropriate modifications and equivalents may be included within the scope.
Claims (38)
- 91065-l-IMM-104 54 Claims: 1. A method of detecting a known video entitywithin a compressed digital video stream, the method comprising: (a) receiving the compressed digital video stream; (b) determining synchronization points within the compressed digital video stream; (c) creating statistical parameterized representations of the compressed digital video stream for windows following the synchronization points in the video stream; (d) comparing the statistical parameterized representation windows to windows of a plurality of fingerprints, wherein each of the plurality of fingerprints includes associated statistical parameterized representations of a known video entity; and (e) detecting a known video entity in the compressed digital video stream when at least one of the plurality of fingerprints has at least a threshold level of similarity to a fingerprint of the video stream.
- 2. A method as claimed in claim 1, wherein the synchronization points are obtained using timing indicators within the compressed digital video stream.
- 3. A method as claimed in claim I or 2, wherein the compressed digital video stream is spatially compressed.
- 4. A method as claimed in claim 1, 2 or 3, wherein the statistical parameterized representations are based on coefficient histograms.
- 5. A method as claimed in any preceding claim, wherein the statistical parameterized representations are based on weighted coefficient histograms.91065-HMM-104 55
- 6. A method as claimed in any preceding claim, wherein the statistical parameterized representations are based on code word histograms.
- 7. A method as claimed in any preceding claim, wherein the statistical parameterized representations are based on histograms of the separation of the end of blocks.
- 8. A method as claimed in any preceding claim, wherein the compressed digital video stream is temporally compressed.
- 9. A method as claimed in any preceding claim, wherein the statistical parameterized representations are based on histograms of I frame separations.
- 10. A method as claimed in any of claims ito 8, wherein the statistical parameterized representations are based on the number of B, P, and I frames within a time segment.
- Ii. A method as claimed in any preceding claim, wherein the statistical parameterized representations are based on motion compensation vectors.
- 12. A method of as claimed in any preceding claim, wherein the statistical parameterized representations are spatially reduced coefficients.
- 13. A method as claimed claim 12, wherein the spatially reduced coefficients are based on the DC coefficients derived from I, P, or B frames of the compressed digital video stream.
- 14. A method as claimed in claim 12, wherein the spatially reduced coefficients are based on a linear combination of DC and AC coefficients derived from I, P, or B frames of the compressed digital video stream.
- 15. A method as claimed in any preceding claim, further comprising: processing uncompressed video when a particular fingerprint of the plurality of fingerprints has at least a threshold level of similarity to the video stream.91065-HMM-104 56
- 16. A method as claimed in any preceding claim, wherein the known video entities are advertisements.
- 17. A method as claimed in any preceding claim, wherein the known video entities are at least some subset of advertisement intros, advertisement outros, channel idents, and sponsorships.
- 18. A method as claimed in any preceding claim, wherein said detecting of step (e) includes detecting an advertisement opportunity in the video stream when said comparing of step (d) indicates that a fingerprint associated with an advertisement or an advertisement intro has at least a threshold level of similarity with the statistical parameterized representations of the video stream.
- 19. A method as claimed in any preceding claim, further comprising: inserting a targeted advertisement subsequent to said detecting an advertisement opportunity in the video stream.
- 20. A method for detecting a known video entity within a video stream, the method comprising: receiving a video stream; continually creating statistical parameterized representations for windows of the video stream; continually comparing the statistical parameterized representation windows to windows of a plurality of fingerprints, wherein each of the plurality of fingerprints includes associated statistical parameterized representations of a known video entity; and detecting a known video entity in the video stream when a particular fingerprint of the plurality of fingerprints has at least a threshold level of similarity with the video stream.91065-I-IMM-104 57
- 21. A system for detecting a known video entity within a compressed digital video stream, the system comprising: a receiver to receive a compressed digital video stream; memory for storing a plurality of fingerprints, wherein each of the plurality of fingerprints includes associated statistical parameterized representations of a known video entity; and a processor configured to determine synchronization points within a compressed digital video stream; create statistical parameterized representations of the compressed digital video stream for windows following the synchronization points; compare the statistical parameterized representation windows following the synchronization points to windows of the plurality of fingerprints; and detect a known video entity in the video stream when at least one of the plurality of fingerprints has at least a threshold level of similarity to a fingerprint of the video stream.
- 22. A system as claimed in claim 21, wherein the synchronization points are obtained using timing indicators within the compressed digital video stream.
- 23. A system as claimed in claim 21 or 22, wherein the statistical parameterized representations include at least some subset of coefficient histograms, weighted coefficient histograms, code word histograms, histograms of separation of end blocks, histograms of! frame separations, the number of B, P, and I frames within a time segment, motion compensation vectors, and spatially reduced coefficients.
- 24. A system as claimed in claim 21, 22 or 23, wherein the known video segments include at least some subset of advertisements, advertisement intros, sponsorship messages, advertisement outros, and channel idents.
- 25. A system as claimed in any of claims 21 to 24, wherein said processor detects an advertisement opportunity in the video stream when the comparing indicates that a fingerprint associated with an advertisement or an advertisement intro has at least a 91065-I-Ds4M-104 58 threshold level of similarity with the statistical parameterized representations of the video stream.
- 26. A system as claimed in claim 25, further comprising: a video inserter to insert targeted advertisements once the incoming video stream is associated with a known advertisement.
- 27. An article of manufacture for detecting a known video entity within a compressed digital video stream, the article of manufacture comprising a computer-readable medium holding computer-executable instructions for performing a method comprising: (a) receiving the compressed digital video stream; (b) determining synchronization points within the compressed digital video stream; (c) creating statistical parameterized representations of the compressed digital video stream for windows following the synchronization points in the video stream; (d) comparing the statistical parameterized representation windows to windows of a plurality of fingerprints, wherein each of the plurality of fingerprints includes associated statistical parameterized representations of a known video entity; and (e) detecting a known video entity in the compressed digital video stream when at least one of the plurality of fingerprints has at least a threshold level of similarity to a fingerprint of the video stream.
- 28. An article as claimed in claim 27, the computer-executable instructions performing a method wherein the synchronization points are obtained using timing indicators within the compressed digital video stream.
- 29. An article as claimed in claim 27 or 28, the computer-executable instructions performing a method wherein the compressed digital video stream is spatially compressed.A91065-HMM-104 59
- 30. An article as claimed in any of claims 27 to 29, the computer- executable instructions performing a method wherein the statistical parameterized representations include at least some subset of coefficient histograms, weighted coefficient histograms, code word histograms, histograms of separation of end blocks, histograms of I frame separations, the number of B, P, and I frames within a time segment, motion compensation vectors, and spatially reduced coefficients.
- 3 1. An article as claimed in ay of claims 27 to 30, the computerexecutable instructions performing a method further comprising: processing uncompressed video when a particular fingerprint of the plurality of fingerprints has at least a threshold level of similarity to the video stream.
- 32. An article as claimed in any of claims 27 to 31, the computerexecutable instructions performing a method wherein the known video entities are advertisements.
- 33. An article as claimed in any of claims 27 to 32, the computerexecutable instructions performing a method wherein the known video entities are at least some subset of advertisement intros, advertisement outros, channel idents, and sponsorships.
- 34. An article as claimed in any of claims 27 to 33, the computerexecutable instructions performing a method wherein said detecting of step (e) includes detecting an advertisement opportunity in the video stream when said comparing of step (d) indicates that a fingerprint associated with an advertisement or an advertisement intro has at least a threshold level of similarity with the statistical parameterized representations of the video stream.
- 35. An article as claimed in any of claims 27 to 34, the computerexecutable instructions performing a method further comprising: inserting a targeted advertisement subsequent to said detecting an advertisement opportunity in the video stream.
- 36. A method of detecting a known video entity within a compressed digital video stream substantially as hereinbefore described with reference to the accompanying figures.91065-HMM-104 60
- 37. A system for detecting a known video entity within a compressed digital video stream substantially as hereinbefore described with reference to the accompanying figures.
- 38. An article of manufacture for detecting a known video entity within a compressed digital video stream, the article of manufacture comprising a computer-readable medium holding computer-executable instructions for performing a method substantially as hereinbefore described with reference to the accompanying figures.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US67138005P | 2005-04-14 | 2005-04-14 |
Publications (2)
Publication Number | Publication Date |
---|---|
GB0607076D0 GB0607076D0 (en) | 2006-05-17 |
GB2425431A true GB2425431A (en) | 2006-10-25 |
Family
ID=36539575
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
GB0607076A Withdrawn GB2425431A (en) | 2005-04-14 | 2006-04-07 | Video entity recognition in compressed digital video streams |
Country Status (1)
Country | Link |
---|---|
GB (1) | GB2425431A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2444094A (en) * | 2006-11-22 | 2008-05-28 | Half Minute Media Ltd | Identifying repeating video sections by comparing video fingerprints from detected candidate video sequences |
WO2009131861A2 (en) * | 2008-04-13 | 2009-10-29 | Ipharro Media Gmbh | Media asset management |
WO2012012645A1 (en) * | 2010-07-21 | 2012-01-26 | Rovi Technologies Corporation | Filtering repeated content |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2523311B (en) * | 2014-02-17 | 2021-07-14 | Grass Valley Ltd | Method and apparatus for managing audio visual, audio or visual content |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5870754A (en) * | 1996-04-25 | 1999-02-09 | Philips Electronics North America Corporation | Video retrieval of MPEG compressed sequences using DC and motion signatures |
GB2399973A (en) * | 2003-02-20 | 2004-09-29 | Hewlett Packard Development Co | Scanner with focal point adjustment |
US20050149968A1 (en) * | 2003-03-07 | 2005-07-07 | Richard Konig | Ending advertisement insertion |
-
2006
- 2006-04-07 GB GB0607076A patent/GB2425431A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5870754A (en) * | 1996-04-25 | 1999-02-09 | Philips Electronics North America Corporation | Video retrieval of MPEG compressed sequences using DC and motion signatures |
GB2399973A (en) * | 2003-02-20 | 2004-09-29 | Hewlett Packard Development Co | Scanner with focal point adjustment |
US20050149968A1 (en) * | 2003-03-07 | 2005-07-07 | Richard Konig | Ending advertisement insertion |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2444094A (en) * | 2006-11-22 | 2008-05-28 | Half Minute Media Ltd | Identifying repeating video sections by comparing video fingerprints from detected candidate video sequences |
WO2009131861A2 (en) * | 2008-04-13 | 2009-10-29 | Ipharro Media Gmbh | Media asset management |
WO2009131861A3 (en) * | 2008-04-13 | 2010-02-25 | Ipharro Media Gmbh | Media asset management |
WO2012012645A1 (en) * | 2010-07-21 | 2012-01-26 | Rovi Technologies Corporation | Filtering repeated content |
Also Published As
Publication number | Publication date |
---|---|
GB0607076D0 (en) | 2006-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9147112B2 (en) | Advertisement detection | |
US7690011B2 (en) | Video stream modification to defeat detection | |
EP1730668B1 (en) | Detecting known images in video streams | |
US7738704B2 (en) | Detecting known video entities utilizing fingerprints | |
US20060195860A1 (en) | Acting on known video entities detected utilizing fingerprinting | |
US20050149968A1 (en) | Ending advertisement insertion | |
US20060195859A1 (en) | Detecting known video entities taking into account regions of disinterest | |
US20050177847A1 (en) | Determining channel associated with video stream | |
US8060609B2 (en) | Systems and methods for determining attributes of media items accessed via a personal media broadcaster | |
US8661483B2 (en) | Determination of receiving live versus time-shifted media content at a communication device | |
CN100544416C (en) | Based on the commercial detection in the audio-visual content of scene change distance | |
US20060271947A1 (en) | Creating fingerprints | |
US20150169963A1 (en) | Video importance rating based on compressed domain video features | |
JP6903653B2 (en) | Common media segment detection | |
US20060209947A1 (en) | Video compression | |
GB2425431A (en) | Video entity recognition in compressed digital video streams | |
WO2008062145A1 (en) | Creating fingerprints | |
GB2423881A (en) | Detecting known video entities taking into account regions of disinterest | |
GB2423882A (en) | Acting on known video entities detected utilizing fingerprinting | |
WO2008037942A1 (en) | Video stream modification to defeat detection | |
He et al. | Approach of sports programs classification with motion information in MPEG domain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WAP | Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1) |