METHOD FOR DETECTING TRANSITIONS IN SAMPLED DIGITAL VIDEO SEQUENCES

Abstract: A method of detecting transitions in a video sequence includes imputting a digital video sequence into a video processor; detecting a monotonically varying image intensity profile of the digital video sequence; and tagging the digital video sequence associated with such an intensity profile as a transition event.

Description: DESCRIPTION METHOD FOR DETECTING TRANSITIONS IN SAMPLED DIGITAL VIDEO SEQUENCES Related Application Co-pending application entitled: "Method for Hierarchical Summarization and Browsing of Digital Video" of Ratakonda, Serial No. 08/994,558, filed December 19, 1997. Field of the Invention This invention relates to detecting either transitions in digital video sequences, wherein the transitions include dissolves, fades, and dissolves including fades. Background of the Invention A transitions is a special visual effect that softens an abrupt scene change in a video sequence. Dissolve transitions are periods of time where the content of a video sequence gradually changes from one scene to another usually according a pre-defined pattern in time. It is of common occurrence in professional footage and consumer video shot by advanced users of high-end cameras. Within a dissolve region, the next scene appears (fades in) while the first scene fades out, and by the end of the dissolve region the next scene replaces the first. Dissolves may also occur as a combination of a fade out to a blank screen followed by a fade in to the second scene. Dissolve regions may be of varying duration, from 1 sec. in professional videos to about 6 sec. in videos shot by recently available digital camcorders, such as Sharp® ViewCam ® , model VL-DC1. The purpose of detecting dissolve and fade transitions is to pre-process uncompressed or compressed digital video sequences prior to preparing a video summary, which will enable a user quickly to review a number of video sequences, or during editing, to avoid undesirable effects such as detection of spurious keyframes by video editing indexing systems during a dissolve or a fade. Such spurious keyframes have little value in video summaries. Fades are generally a transition between a scene and a given color, usually black or white. A fade region is called a fade-in when the transition goes from a fixed color to a video scene and it is called a fade-out when the transition goes from a video scene to a fixed color. Color, as used herein, includes black and white. Dissolve transitions may include a intermediary fade-to-white, fade-to-black or fade-to-gray phase. The first and the last image in a dissolve or a fade transition are called "anchor frames." The video scenes in the dissolve or fade transition may feature either static or moving content. The known prior art is generally concerned with detecting dissolve and fade regions in a statistical setting. Furthermore, the prior art cited below does not make any references to the capability to work directly in a compressed video domain. Previous work in this area typically assumes a model for the dissolve i.e., a model for the variation in the image intensities. Such work assumes that a dissolve results in a linear change of intensities between the anchor frames, which frames are the first and last frames in the dissolve event. It may then be shown that the intermediary frames between the anchor frames have a parabolic profile in terms of standard deviation of intra-frame intensities, i.e., the plot of frame number vs. intra-frame standard deviation for intermediary frames has a parabolic profile. This profile is used as a signature to parse for a dissolve in the video sequence. However, it may be noted that this profile may occur in other parts of the sequence not associated with a dissolve. In order to remove such spurious dissolve detections, known techniques limit the maximum duration of a dissolve to under one second. This artificial limitation may not be satisfied in practice. Additionally, the linear model may not be always satisfied. A dissolve obtained from a camcorder, such as Sharp® ViewCaπf , model VL-DCl, is typically piece- wise linear. Analog camcorders, which use capacitive circuitry, may produce a different profile of a dissolve altogether because capacitance changes exponentially. Aigrain et al, "The Automatic Real-Time Analysis of Film Editing and Transition Effects and its Applications," Computer and Graphics, Vol. 18, No. 1, pp 93-103 (1994) propose statistical models for detecting cross-dissolves, fade-in's and fade-out's. These models are built on the assumption that the transitions are linear. The case where a fade-to-gray transition is part of a dissolve transition is not considered. U.S. Patent No.4,319,286, to Hanpachern describes circuitry which detects a temporary loss of video and audio signals. The patent describes a "commercial killer" which captures the rapid fade-to-black transition that occurs before a commercial in continuous, non- sampled, digital video signals. U.S. Patent Nos. 5,245,436 and 5,283,645, both to Alattar, describe sampled digital video inputs. Patent 5,283,645 describes a statistical framework for detecting dissolves. The proposed method assumes that the dissolve transition is linear in time. Patent 5,245,436 describes a mechanism for detecting fade-in's, transition from a solid color like black to a moving video scene, or fade-out's, transition from moving video scene to a solid color like black, based on measuring the mean difference and the relative mean change between consecutive video frames. The decision whether a fade occurs or not is made on a frame by frame basis and relies on comparing the overall image mean value variation against a set of pre-defined values. Summary of the Invention A method of detecting transitions in a video sequence includes inputting a digital video sequence into a video processor; detecting a monotonically varying image intensity profile of the digital video sequence; and tagging the digital video sequence associated with such an intensity profile as a transition event. The invention is a method for detecting a dissolve which overcomes most of the difficulties in the known prior art. The method is independent of the model adapted for dissolve creation and is more resistant to spurious dissolves. The method is also resistant to limited motion within the dissolve sequence. An object of the invention is to provide a new technique for detecting a dissolve event in a video sequence. Another object of the invention is to provide a new technique for detecting a dissolve event in a video sequence that is functional with both uncompressed digital video and DCT-based compressed video, such as JPEG and MPEG. Another object of the invention is to provide a new technique for detecting a dissolve event in a video sequence that is functional with MPEG-2 compressed video, and wherein dissolve event detection is performed with minimal decoding of the MPEG-2 compressed bitstream. Another object of the invention is to provide a new technique for detecting a dissolve event in a video sequence that provides accurate dissolve/fade detection in the presence of noise. It is an object of the invention is to provide a new technique for detecting a dissolve event in a video sequence that is insensitive to scene motion. A further object of the invention is to provide a unified, fast and yet, robust method for detecting dissolve events, including fade-in's and fade out's, in sampled digital video sequences. Yet another object of the invention is to provide such detection capability independently from the mechanisms or the models used to generate the dissolve events. Brief Description of the Drawings Fig. 1 is a flow chart depicting a first embodiment of the method of the invention Fig. 2 is a graph of block mean value variations in a pure dissolve region. Fig. 3 is a graph of block mean value variations in a pure fade region. Fig. 4 is a graph of block mean value variations in a dissolve region which includes a fade transition. Fig. 5 is a flow chart depicting a second embodiment of the method of the invention. Fig. 6 is a graph of a pixel profile. Fig. 7 is a block diagram of the pre-processing steps of the method of the invention. Detailed Description of the Preferred Embodiment The method of the invention provides a robust technique for detecting a dissolve event, regardless of whether the video input stream is compressed or uncompressed, regardless of scene motion or signal noise, and which method overcomes most of the difficulties in the known prior art. The method is independent of the model adapted for dissolve creation and more resistant to spurious dissolves. The method is also resistant to limited motion within the dissolve sequence. The invention described herein works when the input video sequence is either a sampled video (uncompressed or decompressed) or JPEG or MPEG-compressed video sequence. Detecting dissolves, also referred to herein as a dissolve event, is among the key pre-processing steps to many digital video applications such as video indexing, video editing and video compression. In video summarization, as described in my co-pending patent application, cited above, dissolves may result in detection of spurious keyframes, between the anchor frames, unless they are detected and excluded from video summarization. As used herein, the first and last images in a dissolve sequence are termed "anchor frames." In video compression, motion compensated predictive compression may be avoided by appropriate selection of compression modes within dissolve regions in order to avoid possible decrease in compression efficiency due to poor prediction. In the case of compressed video, such as video compressed under a MPEG standard, loss in coding efficiency in a video encoder may be due to the use of motion compensated prediction in the dissolve region. In general, loss of coding efficiency leads to blocking artifacts in the video sequence because the bit budget per video frame is limited. Once a dissolve has been detected in a digital video sequence, steps may be taken during compression to prevent the effects mentioned above. The invention may be implemented within a video camera which either records sampled video sequences or compressed video bitstreams, or may be implemented in a video editing suite, such as a PC, or other computer. As used herein, the term "video processor" includes video cameras, edit suites, computers, or any other device used to manipulate digital video according to the method of the invention. In the case of a camera or camcorder, the locations of the dissolve or fade regions may be stored in memory. The method of the invention may be implemented as a pre-processing stage before computation of video summaries. The dissolve/fade detection results may be utilized by the video summary module to avoid spurious keyframes which might have been detected in dissolve or fade regions. In order to detect a dissolve event in digital video, the key distinguishing feature of any dissolve sequence must be identified. Consider the profile of the grey value of a pixel at a particular position in all the intermediary frames. From the definition of a dissolve, it follows that the profile will be a monotonic curve, i.e., one that only increases or stays constant, or only decreases or stays constant, as the independent variable, i.e., time, varies across intermediary frames. This is independent of any model assumed for dissolve creation and incorporates even a spatially varying model, i.e., a model which varies across the frame. If all the pixels between two frames follow the monotonic profile, then there has to be a dissolve between the two frames, excluding the trivial case of constant frames and assuming strict monotonicity. This double implication, i.e., profile <=> dissolve, clearly suggests that if such a profile is present in a sequence of video frames, the profile will be die best possible indication of a dissolve event. This forms the basis of the method of the invention for dissolve event detection: detecting a monotonically varying image intensity profile for a digital video sequence, and tagging a digital video sequence as a transition event iff the sequence has a monotonically varying image intensity profile. As used herein, transition events include dissolves, fades and dissolves including fades. The method of the invention is depicted in the flow chart set forth in Fig. 1, generally at 10. The method is based on monitoring the mean values of MxN (M_- 1, N ≥ 1) image blocks in time. In the presence of a dissolve or a fade, the variations of these mean values are monotonic as shown in Figs. 2, 3 and 4. Monotonicity in the variations of the image block mean value is therefore the basic criterion utilized in this invention to detect dissolves or fades. Strict monotonicity occurs when absolute values of the mean variations (differences) are strictly greater than zero. Assume that a space-varying model for the profile of the dissolve varies from pixel to pixel, for example, f(t, i, j), where t represents the temporal dimension and i, j are indices into the image. Given two pixel values, L(i,j) and M(i,j), co-located at (i,j) but residing at different frames in time, the "profile function" f(t,i,j) describes how the value L(i,j) transitions to become M(i,j), in time, due to a fade-in or fade-out (i.e., L fades in (or out) to M). For instance, in Fig. 3, the value at i,j at time 6 (say M) fades in to value L, and the (monotonic) transition is expressed by f(t,i,j). Given that the space varying model for the dissolve is approximately constant within the block (i.e., f(t, i, j) may be replaced by f(t, B) for a block B), the mean of the block, when tracked across the intermediary frames will have a monotonic profile. Assume that the profile for the dissolve between frames L and M, for the block (B) is: g(t, i,j) = ( L(i,j) - M(i,j) ) f(t, B)) (1) where f(.,.) is the normalized monotonic profile for the dissolve between the frames L and M, the anchor frames. It may be easily seen that if f(.,.) is only a function of die block (and does not vary with the pixels within the block), the mean profile of the block (B) is: where V is the number of pixels within block B. In Eqs. (1) and (2), L and M denote pixel intensity distributions of two frames located at two time instances. The index i,j runs within a particular image block B. Because f is the same for pixels within the block, the notation f(t,B) is used. Now, apply the "mean operation" to the first equation, i.e., sum each quantity over the block B and divide the result by N. Since f(t,B) is assumed constant, it survives and appears outside. The result is Eq. (2), where the relationship for the "block mean," whose profile is again the same, namely f(t,B), is defined. Therefore, the block means have the same profile if the pixels within the block have this same profile. From then on, the mean values of blocks are the representative features of the video frames that are used in detection of fades and dissolves. One other advantage of using means, in addition to the three described below, is the fact that it makes the process insensitive to camera motion or motion of the individual objects in the scene, as well as noise. This is very important as it makes for a robust method. Thus, according to Eqs. (1) and (2), the mean profile of the block is therefore also monotonic. Note that if f(.,.) is not the same within the block, the mean profile need not be monotonic. It is also to be noted that f(.,.) must be the same for pixels within a given block. Two different blocks may have different normalized monotonic profiles. Using the mean profile of a block instead of individual pixel profiles is advantageous for the following reasons: 1. Individual pixels may be prone to noise and might not yield a monotonic profile. The effect of noise is reduced in the mean profile due to the inherent integration over all the pixels in the block. 2. Mean profile of a block may be easily obtained from an MPEG-2 bitstream with limited decoding (in the case that we want to perform dissolve detection directly on MPEG-2 bitstreams), thus saving on computational time. 3. Tracking mean profiles reduces the dimension of the computation (since the number of points to be tracked is reduced) in tracking the profile. As previously noted, a monotonic sequence is indicative of a dissolve event. In order to verify that a given sequence of numbers __ ; , i = 1...D is monotonic, the values of S a and S b may be analyzed. Consider the two values S- and S j , obtained by: * β = I ∑w (», - »„.) I (3) S b = ∑ M I-, - » H | (4) It is evident that S a and S,, are only equal iff the sequence is monotonic. In order to ensure strict monotonicity S a (or S,,) must be greater than a small value, as will be described later herein. In the preferred embodiment of the invention, the image blocks are horizontal "stripes", wherein height = 8 rows (M = 8) and width equal to the image width N. The "means" therefore reduces to the "row" averaging. The reason for using rows is two fold: (1) row averaging may be done with minimal decoding when directly processing an MPEG video bitstream, i.e., there is no need to decode the video first, as explained later herein; and (2) the motion during fades/dissolves is likely to have a larger horizontal motion component than a vertical motion component, because horizontal motion is, generally, higher in a typical video sequence. If vertical blocks were used, the procedure may work, however, problems of "mismatch" in case of severe horizontal motion are more likely. Further, using image blocks rather than pixels provides accurate detection of dissolve/fade in the presence of noise making the method robust in practice. Referring now to Hg. 1, the first embodiment of die method of the invention will be described in a step-by-step manner. Step 1: Split a sampled input digital video sequence, block 12, such as a video frame or a video field, as such image appears in a camcorder or editing suite, into plural, non- overlapping MXN blocks, block 14. A number P of these blocks is retained for subsequent processing. "P" is the number of blocks to be used in further processing of the image. As previously noted, the steps of the method of the invention may take place in a camcorder, computer, or other video editing suite, and may take place during a video summarization or editing process. Step 2: Compute the mean value of each of the P blocks, block 16. The resulting P mean values along with their corresponding values in the previous MIN_DISSOLVE _LENGTH-1 images are stored, block 18, and used to evaluate the monotonicity of the mean values in time. The value M_N_DISSOLVE_LENGTH (also referred to herein as "D"), block 20, determines the length of the image sub-sequence used to measure monotonicity, block 22. This is a estimated value, and is provided as an input parameter by the user, based on an expected minimum length of a dissolve event. Step 3: Evaluate monotonicity of the mean values by calculating the two quantities S a and S b for each of the P image blocks, block 24. These values are equal if the mean values in the sub-sequence exhibits a monotonic trend. Step 4 : Compare absolute difference of S a and S b against a pre-defined threshold value, THRES, for each of the P image blocks, block 26. The number of blocks, Q, showing an absolute difference less than THRES, is compared to a given image count RATIO X P where RAΗO is an input parameter. The value RATIO is a value between 0.0 and 1.0, and a typical value for RAΗO is in a range of between 0.6 and 0.9. The monotonicity condition is satisfied if Q is greater than RAΗO X P, which means that there are at least RAΗO X P mean values which exhibit a monotonic trend. Step 5: If the monotonicity condition in step 4 is satisfied, compute S defined as the sum of S a quantities found for the Q mean values satisfying the condition in step 4, block 28. In the case where condition of step 4 has failed, the sub-sequence is tagged as not being part of a dissolve or a fade, block 30. Go to step 7 Step 6: Compare the value S against the value TOT_ERROR X Q, block 32. If S is greater than TOTJERROR X Q, the sub-sequence is tagged as belonging to a dissolve or fade region, block 34. This test ensures strict monotonicity in the mean value variations. If S is smaller or equal to TOT_ERROR X Q , the sub-sequence is tagged as not being part of a dissolve or a fade transition, block 30. Go to step 7. Step 7: Re-iterate step 1 through 7 for all sub-sequences in the digital video sequence. A sub-sequence sliding control mechanism determines the position of consecutive sub-sequences in the sequence. One possibility consists in sliding die sub-sequence by one frame at a time, block 22. In this case, the oldest mean values are discarded and are replaced by the P mean values obtained from the last input video image. Another possibility is to increment the position of consecutive subsequences by more dian one frame at a time. Step 8: Inspect all sub-sequence tags. Eliminate spurious (isolated) dissolve/fade sub- sequences and concatenate dissolve/fade sub-sequences which are no more than K images apart, where K is a pre-defined number of images, block 36. This step involves changing negative dissolve/fade tags to positive dissolve/fade sub- sequence identification as long as they occur between dissolve/fade sub-sequences detected within a K images range. All other regions in the sequence are otherwise tagged as not being dissolve/fade regions Step 9: Verify that there is a scene change between the two anchor frames of the detected dissolve/fade region, block 38. This step guarantees that sequences of still images cannot be detected as dissolve or fade regions. A possible implementation is to test whether the absolute difference of the block mean values in the two anchor frames exceeds a pre-defined threshold. Step 10: Tag period in video sequence as a dissolve/fade transition if test in step 9 is true, block 40. Tag it as not being a dissolve/fade region otherwise, block 42. The value of P, i.e., the number of blocks to be used in processing is chosen as follows: Frames are tiled into contiguous blocks, covering the entire image, however, not all of the frames may be used for dissolve detection. P may be equal to the total number of blocks in die image, in the case where all blocks are used, or less than die total number of blocks. The first option is the usual mode of operation, whereas the second option is a provision to (1) reduce computational cost, especially when frames are large, say 1920 x 1080 pixels, particularly if computational resources are limited, and (2) to incorporate a priori knowledge one may have, or which one may extract from the video data, about die scene. For instance for (2), if one detects motion in a region spanning a certain subset of blocks, e.g., due to an independently moving object, such blocks may be left out, allowing the subsequent process to focus on only variations that are due to fade or dissolve, rather than object motion. In addition, any blocks containing channel errors (e.g., transmission errors) are also left out. The difference between detecting either dissolve regions, fade regions or dissolve regions witii intermediary fade transition lies in the selection of the MIN_DISSOLVE_LENGTH, TOT_ERROR and K values. The value of M_N_DISSOLVE_LENGTH determines the image sub-sequence length thereby impacting the selectivity of the algorithm as far as locating the anchor frames is concerned. For dissolve regions which include an intermediary fade transition, the value MtN_DISSOLVE_LENGTH should be selected greater than die number of constant color images to prevent strict monotonicity test from failing too frequently. A typical value for MIN_DISSOLVE_LENGTH is 30. The value TOT_ERROR determines die degree of monotonicity in the sequence. In detection of fades, die value of TOTJERROR is decreased to take into account die fact that monotonicity measure, S a , is either zero or close to zero in the regions where the video images are constant (beginning of fade-in or end of fade-out). A typical value for TOTJERROR is 6, for processing 8 bits per pixel luminance component of the video sequence. In the case of dissolve regions including a fade transition, the value TOT_ERROR is decreased if the value M-N_DISSOLVE_LENGTH is small so the algorithm does not fail in the region of constant color. S a and --,,, as used herein, are quantities used to determine whether the set of numbers are monotonic or not. S a and S,, are intermediate values used to define die monotonicity test described herein. The value of K is selected in coordination with de values selected for M_N_DISSOLVE_UENGTH and TOT_ERROR. In the case of fades, a large K value may help compensate for a M_N_DISSOLVE_LENGTH which is too small or for a TOTJERROR which is too large. For pure dissolves, a small value may prevent the algorithm from extending dissolve region beyond die anchor frames. Figs. 2, 3 and 4 provide tiiree distinct scenarios for dissolves and fades. Fig. 2 provides a typical example of block mean value variations, line 50, in a pure dissolve region, line "D" Variations of die mean outside die dissolve region reflect die fact that image content is moving in each scene. Fig. 3 provides a typical example of block mean value variations, line 52, in a pure fade region, line "F". The difference from the transition depicted in Fig. 2 lies in the fact that diis transition brings the image content to a pre-defined constant value, L. Fig.4 provides a typical example of block mean value variations, line 54, in a dissolve region which includes a fade transition, line "DF\ The difference from the transition depicted in Fig. 2 lies in the fact that in this transition tiiere is an intermediary fade to constant value, L, in the dissolve. Digital camcorders such as the Sharp® ViewCam ® , model VL-DCl operate according to tiiis mode. The med od described above may be ported to the case where the input digital video sequence is replaced by a compressed video stream, where compression is block DCT- based, such as motion JPEG- or an MPEG-compressed bitstream. As already described in my cited co-pending application, which is incorporated herein by reference, DC values of 8x8 blocks may be obtained from MPEG bitstreams with minimal decoding and may be readily used in compiling row averages. In the case of MPEG, the dimensions, M and N, are integer multiple of 8, which are now values imposed by die coding standard and no longer input parameters as in Fig. 5 shows a revision of Fig. 1 when the input is an MPEG-compressed video bitstream. Step 1 : Minimally decode an input MPEG compressed video bitstream, block 112, and extract the DC coefficients to compute the means of P blocks of MxN, block 114, which number P is retained for subsequent processing. As previously noted, the steps of the method of die invention will take place in a camcorder, computer, or other video editing suite, and will take place during a video summarization or editing process. Step 2: The resulting P mean values along with their corresponding values in the previous MINJDISSOLVE J ENGTH-1 images are stored, block 118, and used to evaluate the monotonicity of the mean values in time. The value MINJDISSOLVE JLENGTH, also referred to herein as "D", block 120, determines the length of the image sub-sequence used to measure monotonicity, block 122. As stated with the uncompressed input method, this is a estimated value, and is provided as an input parameter by the user, based on an expected minimum length of a dissolve event. Step 3: Evaluate monotonicity of the mean values by calculating the two quantities S β and S b for each of the P image blocks, block 124. These values are equal if the mean values in the sub-sequence exhibits a monotonic trend. Step 4 : Compare absolute difference of S a and S b against a pre-defined threshold value, THRES, for each of the P image blocks, block 126. The number of blocks showing an absolute difference less than THRES, Q, is compared to a given image count RATIO X P where RAΗO is an input parameter. The value RAΗO is a value between 0.0 and 1.0, and a typical value for RAΗO is in a range of 0.6 to 0.9. The monotonicity condition is satisfied if Q is greater than RATIO X P, which means that there are at least RATIO X P mean values which exhibit a monotonic trend. Step 5: If the condition in step 4 is satisfied, compute S defined as the sum of S a quantities found for die Q mean values satisfying the condition in step 4, block 128. In die case where condition of step 4 has failed, the sub-sequence is tagged as not being part of a dissolve or a fade, block 130. Go to step 7 Step 6: Compare the value S against the value TOT_ERROR X Q, block 132. If S is greater than TOT_ERROR X Q, the sub-sequence is tagged as belonging to a dissolve or fade region, block 134. This test ensures strict monotomcity in the mean value variations. If S is smaller or equal to TOT_ERROR X Q , die subsequence is tagged as not being part of a dissolve or a fade transition, block 130. Go to step 7. Step 7: Re-iterate step 1 through 7 for all sub-sequences in the digital video sequence. A sub-sequence sliding control mechanism determines the position of consecutive sub-sequences in the sequence. One possibility consists in sliding the sub-sequence by one frame at a time, block 122. In this case, the oldest mean values are discarded and are replaced by the P mean values obtained from die last input video image. Another possibility is to increment the position of consecutive subsequences by more than one frame at a time. Step 8: Inspect all sub-sequence tags. Eliminate spurious (isolated) dissolve/fade subsequences and concatenate dissolve/fade sub-sequences which are no more than K images apart, where K is a pre-defined number of images, block 136. This step involves changing negative dissolve/fade tags to positive dissolve/fade subsequence identification as long as they occur between dissolve/fade sub-sequences detected within a K images range. All other regions in the sequence are otherwise tagged as not being dissolve/fade regions Step 9: Verify that there is a scene change between the two anchor frames of the detected dissolve/fade region, block 138. This step guarantees that sequences of still images cannot be detected as dissolve or fade regions. A possible implementation is to test whether the absolute difference of the block mean values in the two anchor frames exceeds a pre-defined threshold. Step 10: Tag period in video sequence as a dissolve/fade transition if test in step 9 is true, block 140. Tag it as not being a dissolve/fade region otiierwise, block 142. Fig. 6 shows the typical profile, line 56, of a pixel undergoing a fade out followed by a fade in (the second category of dissolve introduced in the introduction). This profile was obtained from an actual dissolve taken with a Sharp ® ViewCam ® , model VL-DCl. It may also be noted tiiat the dissolve (i.e., fade in + fade out) lasts for over 6 seconds (30 frames/second), contrary to assumptions made in the prior art. The fade out event begins at 56a, and is complete at 56b. The image is of constant intensity until 56c, when a fade in event begins, which fade in event is complete at 56d. Referring now to Fig. 7, a pre-processing step 60, which may be used with the method shown in either Fig. 1 or Fig. 5, is depicted. An input video sequence 12 is provided. If the input video contains dissolves, certain frames within the transition region may be detected as keyframes of the video summary, using the video summarization method of my co-pending application. These detected frames within the transition region, however, are of little value as keyframes. Such spurious keyframes are avoided as the video sequence is pre-processed according to the current invention, where dissolves and fades are detected, block 62, and only tiieir anchor frames, block 64, are used in the summarization process block 68, after removing and detected fade/dissolve transitions that are not anchor frames, block 66, resulting in a more meaningful summary keyframes, block 70. Industrial Applications In video browsing, dissolve events result in a number of keyframes being assigned to die dissolve region, which is not a desirable condition. The keyframes contain a number of frames from the dissolve event which might be "uninteresting" to die user. By removing the dissolve frames from the video sequence before feeding it to the keyframe detection mechanism, the identification of uninteresting frames may be avoided, thereby converting a dissolve into an abrupt scene transition. Compression algorithms which employ motion compensation strategies perform very poorly in dealing with dissolve events. A possible implementation, after identifying a dissolve, will compress only the anchor frames and transmit the normalized monotonic profile (f(t,B)) to represent the rest of the frames. If the monotonic profile is approximated by a linear fit, no parameters need be sent because die start and end points are already known. The MPEG decoder will be able to reconstruct the entire dissolve sequence with this information. The methods of die invention may be used as a pre-processing module in JPEG or MPEG encoders. When a dissolve or a fade is positively identified in a video sequence, an encoder may make a smart selection of encoding parameters to maintain coding efficiency in the dissolve/fade regions. Thus, a method of detecting transition events in a digital video sequence has been disclosed. The method is useful as part of a regimen prior to video summarization or editing. The method may be used witii compressed or uncompressed video sequences, and, where used widi compressed video sequences, only requires partial decompressing of the video bitstream. Although a two embodiments of die invention have been disclosed herein, it will be appreciated that further variations and modifications may be made tiiereto without departing from the scope of the invention as defined in the appended claims.

Claims: CLAIMS 1. A method of detecting transitions in a video sequence comprising: inputting a digital video sequence into a video processor; detecting a monotonically varying image intensity profile of the digital video sequence; and tagging the digital video sequence associated witii such an intensity profile as a transition event. 2. The method of claim 1 wherein transition events are taken from the group consisting of dissolves, fades, and dissolves including fades. 3. The method of claim 1 wherein said detecting includes detecting image intensity profiles of MxN image blocks where M≥ 1 and N __ 1. 4. The method of claim 1 wherein said inputting includes inputting an uncompressed digital video sequence. 5. The mediod of claim 1 wherein said inputting includes inputting a compressed digital video sequence, wherein the compressed digital video sequence is taken from the group of compressed digital video sequence including MPEG and JPEG compressed digital video sequence. 6. The method of claim 1 which includes identifying a transistion event and preprocessing the digital video sequence to eliminate the transition event except for transition event anchor frames prior to identifying keyframes. 7. The method of claim 1 which includes: (a) splitting die digital video sequence into plural, non-overlapping image blocks; (b) processing a number, P, of the image blocks; (c) determining the mean value of each of the P image blocks in a sub-sequence of frames; (d) determining the length of the sub-sequence of frames required to measure monotonicity by from a minimum expected length of a dissolve event; (e) calculating a pair of monotonicity values, S a and S b , for each of the P image blocks; evaluating die monotonicity of the mean value of each of the P image blocks; (f) determining a pre-defined threshold value (THRESH) for a monotonicity test; (g) comparing an absolute difference of die pair of monotonicity values against the pre-defined threshold value for each of the P image blocks; (h) selecting those image blocks, whose number is Q, wherein the absolute difference is less than THRES; (i) comparing Q to a given image count RAΗO X P, wherein RATIO is an input parameter having a value between 0.0 and 1.0, to test for a monotonic trend; (j) calculate a monotonicity value, S, defined as the sum of S a quantities found for the Q image blocks; (k) tagging those Q image blocks wherein the monotonicity value S is greater than the value TOTJERROR X Q as an image block belonging to a dissolve or fade region; (1) using a sub-sequence sliding control mechanism to consider all sub-sequences in the input video; (m) concatenating image sub-sequences which are tagged as belonging to a dissolve or fade region and are no more than K images apart, where K is a pre-defined number of frames; and (n) verifying that there is a scene change between the two anchor frames of the detected dissolve/fade region. 8. The method of claim 7 wherein said determining (c) includes extracting the DC coefficient of a DCT block from a compressed input digital video sequence. 9. A method for detecting transitions in digital video sequences comprising: (a) inputting a digital video sequence into a video processor; (b) splitting the digital video sequence into plural, non-overlapping image blocks; (c) processing a number, P, of die image blocks; (d) determining the mean value of each of die P image blocks in a sub-sequence of frames; (e) determining the length of die sub-sequence of frames required to measure monotonicity from a minimum expected length of a dissolve event; (f) calculating a pair of monotonicity values, S a and S b , for each of the P image blocks; evaluating the monotonicity of the mean value of each of the P image blocks; 24. (g) deteιτnining a pre-defined tiireshold value (THRESH) for a monotonicity test; (h) comparing an absolute difference of the pair of monotonicity values against the pre-defined tiireshold value for each of the P image blocks; (i) selecting those image blocks, whose number is Q, wherein the absolute difference is less than THRES; (j) comparing Q to a given image count RATIO X P, wherein RATIO is an input parameter having a value between 0.0 and 1.0, to test for a monotonic trend; (k) calculate a monotonicity value, S, defined as the sum of 5. quantities found for the Q image blocks; 0) tagging those Q image blocks wherein the monotonicity value S is greater than the value TOT_ERROR X Q as an image block belonging to a dissolve or fade region; (m) using a sub-sequence sliding control mechanism to consider all sub-sequences in the input video; (n) concatenating image sub-sequences which are tagged as belonging to a dissolve or fade region and are no more than K images apart, where K is a pre-defined number of frames; (o) verifying that there is a scene change between the two anchor frames of the detected dissolve/fade region; and (p) tagging a video sequence as a dissolve/fade transition. 10. The method of claim 9 wherein transition events are taken from the group consisting of dissolves, fades, and dissolves including fades. 11. The method of claim 9 wherein said inputting includes inputting an uncompressed digital video sequence. 12. The method of claim 9 wherein said inputting includes inputting a compressed digital video sequence, wherein the compressed digital video sequence is taken from the group of compressed digital video sequence including MPEG and JPEG compressed digital video sequence. 13. The method of claim 9 wherein said determining (d) includes extracting die DC coefficient of a DCT block from a compressed input digital video sequence. 14. The method of claim 9 which includes identifying a transistion event and preprocessing the digital video sequence to eliminate the transition event except for transition event anchor frames prior to identifying keyframes.

Inventors: RATAKONDA KRISHNA, RATAKONDA, KRISHNA
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1999
Main classification: H04N5
IPC codes: G11B27, H04N5, H04N7