Schedules for television and other video programming may often be unpredictable due to various circumstances. For example, a sporting event may run past an expected or scheduled end time due to extra innings in a baseball game, overtime in basketball, football or hockey, and the like. Similarly, other types of programming such as movies or news may also exceed a predefined end time due, for example, to previous shows or content deviating from their schedule, resulting in a cascade effect. Accordingly, if a user has defined a recording for a program based on predefined scheduling information (e.g., in an electronic programming guide) and the program extends passed the scheduled end time, the recording of the program might not be complete.
The following presents a simplified summary of the disclosure in order to provide a basic understanding of some aspects. It is not intended to identify key or critical elements of the disclosure or to delineate the scope of the disclosure. The following summary merely presents some concepts of the disclosure in a simplified form as a prelude to the more detailed description provided below.
Aspects of the present disclosure relate to systems and methods for detecting a beginning of a credit roll of a video program within a video stream. For example, detection of the beginning of a credit roll may be performed by extracting a plurality of frames and analyzing each frame to identify text blocks within those frames. Since a credit roll may include more text for a longer duration than in other content frames (e.g., scenes of a movie, sporting event, news broadcast, etc.), the number of text blocks in the video frames and a pattern thereof may allow detection of a transition point. Accordingly, the number of text blocks may be counted for each frame and placed in a sequence according to the chronological order of the frames. A wavelet may then be applied to the sequence of numbers to identify a point within the plurality of frames where a greatest difference exists between the number of text blocks detected in a first set of frames chronologically prior to the identified point and the number of text blocks detected in a second set of frames chronologically after the identified point. The point of greatest difference may be identified as the starting point of the credit roll.
According to another aspect, identifying text blocks within a frame may be performed by defining a text analysis window size and partitioning the frame based on the defined text analysis window size. The highest contrast exhibited by a pixel within each partition or segment may be identified and compared against a threshold contrast value. If the highest contrast meets or exceeds the threshold value, the corresponding partition or segment may be recorded. Those partitions that do not include a pixel having a contrast that meets or exceeds the threshold contrast value may be discarded or not recorded. Subsequently, contiguous recorded partitions may be merged into single text blocks. The blocks may then be filtered to remove false positives such as noise and images that might have high contrasts. For example, the filter may remove any blocks that are not of a predefined threshold size (e.g., a certain number of pixels high and/or wide) and blocks that do not have a sufficient high contrast pixel density. In the latter case, the system may determine the number of pixels within the block having a contrast exceeding the threshold contrast and calculate a density therefrom. If the density does not meet or exceed a particular density threshold, the block may be discarded as a false positive.
According to another aspect, identifying the start of a credit roll may allow a system to automatically extend recordings if the credit roll has not been detected. Since the credit roll is typically located at the end of a video program, the credit roll may be a reliable indicator of when a program is about to end (or a substantive portion of the program has ended). In one example, frames may be extracted from a video stream upon detecting a current time matching a predefined amount of time prior to a scheduled end time of the program being recorded (e.g., 10 minutes before the scheduled end time). In one example, the extracted frames may comprise 2 frames per second of the most recently recorded 5 minutes, 10 minutes, 30 minutes or other time periods. The system may then determine if the start of the credit roll is detected based on a text block analysis. If not, the system may extend the recording end time by a predefined amount of time (e.g., 10 seconds, 20 seconds, 30 seconds, 2 minutes, 5 minutes, etc.) and continue to monitor for the start of the credit roll based on a subsequent set of frames. If the start of the credit roll is detected, the system may set (or reset) the recording end time to a predefined amount of time after the start of the credit roll. Alternatively, the system might not alter the current recording end time when the start of the credit roll is detected.
According to yet another aspect, video programs such as video on demand and other assets may be processed such that additional content and information may be automatically inserted into the credit roll portion. For example, advertisements, viewing recommendations, news, weather, games and the like may be inserted into areas of the credit roll that do not include text. In another example, the credit roll may be shrunk to a smaller size to allow for the placement of the additional content in the remaining display space.
The details of these and other embodiments of the present disclosure are set forth in the accompanying drawings and the description below. Other features and advantages of the disclosure will be apparent from the description and drawings, and from the claims.
The present disclosure is illustrated by way of example and not limited in the accompanying figures in which like reference numerals indicate similar elements and in which:
Network 111 and/or PSTN 109 may further support access to a data network including, for example, a wide area network (WAN) such as the Internet. In one example, PSTN 109 may allow a computing system to access the Internet through a dial-up modem. One or more portions of network 111 may be part of a private local area network (LAN). Alternatively or additionally, network 111 may include one or more logical networks that may be public or private. For example, a service provider such as a video or television content distributor may provide a private logical content network that only allows subscribers (e.g., clients 103, 105 and 107) to receive and/or consume the content distributed therethrough. The content transmitted through the private logical network might also be encrypted according to an encryption protocol that only members of the logical network is configured to understand. The private logical content network may be defined by multiple network addresses corresponding to the members of the network (e.g., clients 103, 105 and 107 and service provider server 101). Alternatively or additionally, a user may place orders for content or communicate other information to service provider 101 using a communication device such as mobile phone 113.
Computing system 201 may include a variety of firmware, software and hardware components including one or more processors 203, memory 205 (e.g., random access memory (RAM) and read-only memory (ROM)), input adapters 207, output adapters 209 and network adapter 211. Processor 203 may be configured to perform mathematical calculations and execute instructions stored in memory 205. Such calculations and instructions may include determining a level of contrast for each pixel in a video frame. In another example, processor 203 may be configured to execute instructions for identifying text blocks within a video frame, as further described herein. Memory 205, in addition to storing computer readable instructions, may further store content items such as video, audio and/or text, user profile information, service information and various other types of data. Memory 205 may include various types of storage including optical, magnetic and flash storage systems. Input adapters 207 may be configured to facilitate the reception and processing of data from one or more input devices such as a keyboard 217, a remote control 219, a video camera (not shown), a microphone (not shown), a motion sensing device (not shown) and the like. For example, input adapter 207 may be configured to receive and process input from a user specifying a program that the user wishes to record using remote control 219. The recordation instructions may subsequently be stored in memory 205. Output adapters 209, on the other hand, may be configured to facilitate the outputting of data to one or more output devices such as a display 213 (e.g., computer monitor, television) or other visual output device, speakers 215 or other audio output systems, tactile and/or haptic feedback systems (not shown) and the like. In one example, video content may be displayed to a television and/or to an external or internal mass storage recording device (not shown).
According to one aspect, computing system 201 may store programming and instructions that may be executed by processor 203 to identify the start of a credits portion in a video program. A credits or credit roll portion may, in one example, include a portion of a video program that displays all the entities that contributed to the production of that video program. The credit roll may list actors, producers, audio and visual editors, movie, television and/or music studios, and the like. The credit roll is generally included at the end of a video program and thus, may be particularly indicative of when a video program has ended. Accordingly, computing system 201 may insure that a video recording, for instance, is automatically extended to fully capture a video program by detecting the start of a credit roll. Once the computing system 201 detects the start of the credit roll, the computing system 201 may instruct a recording subsystem to end the recording a predefined amount of time (e.g., 2 minutes, 5 minutes, 10 minutes, etc.) after the detected credit roll start. Capturing the entire credit roll might not be as imperative as capturing the entirety of a substantive portion of the video program. In other examples, computing system 201 may be configured to perform other functions upon detection of the start of the credit roll. For example, computing system 201 may identify areas of the credit roll in which additional content such as recommendations, advertisements, news and the like may be inserted without overlaying or obscuring existing text.
Once recording has begun, the computing system may monitor the current time in step 325 and determine whether the current time matches a predefined amount of time prior to the scheduled end time of the video program in step 330. For illustrative purposes, the predefined amount of time may be 10 minutes. In other examples, the predefined amount of time may be 1 minute, 2 minutes, 5 minutes, 15 minutes, 20 minutes, 30 minutes and the like. If the current time does not match the predefined amount of time prior to the scheduled end time, the computing system may return to monitoring the current time in step 325. If, however, the current time does match, the computing system may extract a number of most recently recorded video frames in step 335 (e.g., from a mass storage device of the recording system or a receiver buffer). In one example, the number of extracted video frames may be determined based on the use of 2 frames per second to extract frames for the last 5 minutes of recorded video (resulting in 600 extracted frames). In other examples, more or less frames may be extracted per second, or frames can be extracted to cover greater or less time depending, for example, on a speed at which text moves in the rolling credits.
Upon extracting the video frames, the computing system may subsequently determine a number of text blocks in each frame in step 340. A text block may include a contiguous or continuous region of text in a video frame. A text block may be defined in various manners based on allowable text block shapes and sizes and/or an amount of allowable space between characters of text (e.g., to still be considered within a single text block). An example method for identifying and determining a number of text blocks in a video frame is described in further detail below with respect to
In one arrangement, identifying the transition may include analyzing the text block information using a wavelet in step 345 to identify the point in the sequence of frames where the greatest difference exists between the left and right sides of the wavelet. A wavelet may include a mathematical function used to divide a given function or time signal into different scale components. Wavelets and the application thereof are further described below in
This process may be conducted through the entire sequence of extracted frames (e.g., moving the wavelet right by 1 frame each time) and the differences aggregated. For example,
In step 500, a computing system (such as computing system 201 of
Referring again to
The size of the text analysis window (and the partitioned blocks) may be defined based on an expected maximum distance between pixels of characters in a word, sentence, line, paragraph or other textual structure. For example, if the computing system wishes to define a single text block as a horizontal or vertical line of text, the computing system may define the window width or height, respectively, as being equal to the expected maximum distance between characters (or pixels thereof) in a line of text. For example, a window width may be defined as the distance between a top most pixel of the letter “t” and the top most pixel of the letter “J” in the phrase “Directed by Pat. January 2010.” In some examples, the width may be greater than the expected maximum distance (e.g., 10%, 20%, 25%, 50%, 75%, 100% greater). The setting of the partition or window size in such a manner may insure that a high contrast pixel is included in every partitioned block within that line of text. Otherwise, areas between characters within the line of text might not be recorded or noted (e.g., if the window size is too small and partitioned areas do not include a sufficiently high contrast pixel). This may then result in the entire line not being aggregated as a single block since the identified areas might not be contiguous due to the non-recorded areas. In another example, if the computing system defines a text block to comprise a single word, the window width or height may be equal to the expected maximum distance between characters in a word and, in some cases, less than an expected minimum distance between words.
Referring back to
A high contrast density filtering process may examine a high contrast pixel density of each of the identified blocks and compare the density to a threshold density. If the high contrast pixel density does not meet or exceed the threshold density, the corresponding block may be removed as a text block. In one or more examples, the threshold density may be greater than the width of the text block being analyzed divided by the size of the text analysis window. High contrast pixel density may be useful in identifying false positives since text generally exhibits a high frequency of alternating bright and dark spots (e.g., pixels of the character versus pixels of the background). In contrast, a bright window in an image (e.g., sun shining through the window pane), for example, exhibits less frequency in alternating bright and dark spots and thus may exhibit less high contrast areas. That is, while there are transitions at the boundary of the window pane and the window frame or walls adjoining the window, the brightness within the window panes is generally consistent and continuous. Thus, contrast within the window panes may be low and high contrast pixels might only be identified at the points where the window pane ends and the window frame or an adjoining wall begins.
In step 560, the computing system may subsequently determine the number of distinct text blocks identified from the processes of steps 500-550. The computing system may equate the number of distinct text blocks to the number of words, sentences, paragraphs, lines or other text structure in the video frame.
The detection of the beginning of a credit roll may be used to perform a variety of functions.
In step 820, the computing system may identify a portion of the credit roll of the determined duration that includes consecutive frames having non-text occupied space of the determined size and in the same location throughout the consecutive frames. Consecutive frames may refer to the frames that are extracted and analyzed and not all frames within that portion of the credit roll. For example, a video may comprise 30 frames per second. However, only the extracted and analyzed 2 frames per second (for example) of the identified credit roll portion may be analyzed in step 820. Once identified, the computing system may insert the information item in the identified portion of the credit roll and in the determined location within each frame in step 825. Insertion may occur at a provider's equipment (e.g., at a central office such as a headend or at an edge device closer to the end user) or at the equipment of the end user (e.g., customer premises equipment (CPE)). Insertion of the information item may be performed for all frames for the identified credit roll portion regardless of whether the frame was extracted and analyzed for text blocks. Thus, in the above example where a video stream includes 30 frames per second, the information item may be inserted into all 30 frames per second for the identified credit roll portion.
In some examples, the information item may be selected after identifying portions of a credit roll having consecutive frames exhibiting consistent and continuous areas devoid of text. The size of these textually empty areas and the duration of the identified portion may be determined and used in selecting an appropriate information item. For example, a computing system may identify a segment of a credit roll having a duration of 30 seconds and including an area continuously devoid of text and measuring 100×75 pixels. Accordingly, the computing system may select an advertisement that is able to fit within the determined size and having a duration equal to or less than 30 seconds.
In other examples, once the beginning of a credit roll portion has been identified, the credit roll may be shrunk to a smaller size to allow for placement of advertisements or other content outside of the credit roll boundary.
While many of the aspects described herein have been discussed in relation to credit rolls and the detection thereof, the same features may be applied to detecting the transition a portion of a content item or video stream having substantial amounts of text and a portion of a content item or video stream having fewer or smaller amounts of text.
The methods and features recited herein may further be implemented through any number of computer readable media that are able to store computer readable instructions. Examples of computer readable media that may be used include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, DVD or other optical disk storage, magnetic cassettes, magnetic tape, magnetic storage and the like. Also, some of the steps in the described methods may be omitted.
Additionally or alternatively, in at least some embodiments, the methods and features recited herein may be implemented through one or more integrated circuits (ICs). An integrated circuit may, for example, be a microprocessor that accesses programming instructions or other data stored in a read only memory (ROM). In some such embodiments, the ROM stores programming instructions that cause the IC to perform operations according to one or more of the methods described herein. In at least some other embodiments, one or more of the methods described herein are hardwired into an IC. In other words, the IC is in such cases an application specific integrated circuit (ASIC) having gates and other logic dedicated to the calculations and other operations described herein. In still other embodiments, the IC may perform some operations based on execution of programming instructions read from ROM or RAM, with other operations hardwired into gates and other logic of IC. Further, the IC may output image data to a display buffer.
Although specific examples of carrying out various features have been described, those skilled in the art will appreciate that there are numerous variations and permutations of the above-described systems and methods that are contained within the spirit and scope of the disclosure as set forth in the appended claims. Additionally, numerous other embodiments, modifications and variations within the scope and spirit of the appended claims will occur to persons of ordinary skill in the art from a review of this disclosure.
This application is a continuation of U.S. patent application Ser. No. 17/407,500, filed Aug. 20, 2021, which is a continuation of U.S. patent application Ser. No. 16/555,743, filed Aug. 29, 2019 (now U.S. Pat. No. 11,134,214), which is a continuation of U.S. patent application Ser. No. 15/808,443, filed Nov. 9, 2017 (now U.S. Pat. No. 10,440,305), which is a continuation of U.S. patent application Ser. No. 14/625,981, filed Feb. 19, 2015 (now U.S. Pat. No. 9,843,759), which is a continuation of U.S. patent application Ser. No. 12/908,048, filed Oct. 20, 2010 (now U.S. Pat. No. 8,989,499), each of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 17407500 | Aug 2021 | US |
Child | 18773069 | US | |
Parent | 16555743 | Aug 2019 | US |
Child | 17407500 | US | |
Parent | 15808443 | Nov 2017 | US |
Child | 16555743 | US | |
Parent | 14625981 | Feb 2015 | US |
Child | 15808443 | US | |
Parent | 12908048 | Oct 2010 | US |
Child | 14625981 | US |