This invention pertains to the field of video processing, and more particularly to the identification of scene boundaries in a video sequence using group sparsity analysis.
With the development of digital imaging and storage technologies, video clips can be conveniently captured by consumers using various devices such as camcorders, digital cameras or cell phones and stored for later viewing and processing. Efficient content-aware video representation models are critical for many video analysis and processing applications including denoising, restoration, and semantic analysis.
Developing models to capture spatiotemporal information present in video data is an active research area and several approaches to represent video data content effectively have been proposed. For example, Cheung et al. in the article “Video epitomes” (Proc. IEEE Conference on Computer Vision and Pattern Recognition, Vol. 1, pp. 42-49, 2005), teach a patch-based probability models to represent video content. However, their model does not capture spatial correlation.
In the article “Recursive estimation of generative models of video” (Proc. IEEE Conference on Computer Vision and Pattern Recognition, Vol. 1, pp. 79-86, 2006), Petrovic et al. teach a generative model and learning procedure for unsupervised video clustering into scenes. However, they assume videos to have only one scene. Furthermore, their framework does not model local motion.
Peng et al., in the article “RASL: Robust alignment by sparse and low-rank decomposition for linearly correlated images” (Proc. IEEE Conference on Computer Vision and Pattern Recognition, pp. 763-770, 2010), teach a sparsity-based method for simultaneously aligning a batch of linearly correlated images. Clearly, this model is not suitable for video processing as video frames, in general, are not linearly correlated.
Key frame extraction algorithms are used to select a subset of the most informative frames from a video, with the goal of representing the most significant content of the video with a limited number of frames. Key frame extraction finds applications in several broad areas of video processing such as video summarization, creating “chapter titles” in DVDs, video indexing, and making prints from video. Key frame extraction is an active research area, and many approaches for extracting key frames from videos have been proposed.
Conventional key frame extraction approaches can be loosely divided into two groups: (i) shot-based, and (ii) segment-based. In shot-based key frame extraction, the shots of the original video are first detected, and one or more key frames are extracted for each shot (for example, see: Uchihashi et al., “Summarizing video using a shot importance measure and a frame-packing algorithm,” in Proc. IEEE International Conference on Acoustics, Speech, and Signal Processing, Vol. 6, pp. 3041-3044, 1999). In segment-based key frame extraction approaches, a video is segmented into higher-level video components, where each segment or component could be a scene, an event, a set of one or more shots, or even the entire video sequence. Representative frame(s) from each segment are then selected as the key frames (for example, see: Rasheed et al., “Detection and representation of scenes in videos,” IEEE Trans. Multimedia, Vol. 7, pp. 1097-1105, 2005).
Existing key frame selection approaches, both shot-based as well as segment-based, are usually suitable for structured videos such as news and sports videos. However, they are sub-optimal for consumer videos as these videos are typically captured in an unconstrained environment and record extremely diverse content. Moreover, consumer videos often lack a pre-imposed structure, which makes it even more challenging to detect shots or segment such videos for key frame extraction (see: Costello et al., “First- and third-party ground truth for key frame extraction from consumer video clips,” in Proc. SPIE 6492, pp. 64921N, 2007 and Luo et al., “Towards extracting semantically meaningful key frames from personal video clips: from humans to computers,” IEEE Trans. Circuits Syst. Video Technol., Vol. 19, pp. 289-301, 2009).
There remains a need for robust and efficient methods to process digital video sequences captured in an unconstrained environment to perform tasks such as identifying key frames, identifying scene boundaries and forming video summaries.
The present invention represents a method for determining scene boundaries within a video sequence including a time sequence of video frames, each video frame including an array of image pixels having pixel values, comprising:
a) selecting a set of video frames from the video sequence;
b) extracting a feature vector for each video frame in the set of video frames;
c) applying a group sparsity algorithm to represent the feature vector for a particular video frame as a group sparse combination of the feature vectors for the other video frames in the set of video frames, each feature vector for the other video frames in the group sparse combination having an associated weighting coefficient, wherein the weighting coefficients for feature vectors corresponding to other video frames that are most similar to the particular video frame are non-zero, and the weighting coefficients for feature vectors corresponding to other video frames that are most dissimilar from the particular video frame are zero;
d) analyzing the weighting coefficients to determine a video frame cluster of temporally-contiguous, similar video frames that includes the particular video frame;
e) repeating steps c)-d) for a plurality of particular video frames to provide a plurality of video frame clusters;
f) identifying one or more scene boundaries corresponding scenes in the video sequence based on the locations of boundaries between the determined video frame clusters; and
g) storing an indication of the identified scene boundaries in a processor-accessible memory;
wherein the method is performed, at least in part, using a data processor.
This invention has the advantage that it does not require performing computationally intricate steps such as camera motion estimation, global motion estimation, and shot detection for determining key frames from a video. Feature selection, which can be a difficult task, has been found to be less critical in this framework. In addition, the group sparsity approach has the advantage that the group sparse solver is invoked once for each group, which greatly reduces the computational complexity compared to other sparsity approaches that compute a set of sparse coefficients for each frame of the video. As such the determination of video segments is more efficient with this method.
In the following description, some embodiments of the present invention will be described in terms that would ordinarily be implemented as software programs. Those skilled in the art will readily recognize that the equivalent of such software may also be constructed in hardware. Because image manipulation algorithms and systems are well known, the present description will be directed in particular to algorithms and systems forming part of, or cooperating more directly with, the method in accordance with the present invention. Other aspects of such algorithms and systems, together with hardware and software for producing and otherwise processing the image signals involved therewith, not specifically shown or described herein may be selected from such systems, algorithms, components, and elements known in the art. Given the system as described according to the invention in the following, software not specifically shown, suggested, or described herein that is useful for implementation of the invention is conventional and within the ordinary skill in such arts.
The invention is inclusive of combinations of the embodiments described herein. References to “a particular embodiment” and the like refer to features that are present in at least one embodiment of the invention. Separate references to “an embodiment” or “particular embodiments” or the like do not necessarily refer to the same embodiment or embodiments; however, such embodiments are not mutually exclusive, unless so indicated or as are readily apparent to one of skill in the art. The use of singular or plural in referring to the “method” or “methods” and the like is not limiting. It should be noted that, unless otherwise explicitly noted or required by context, the word “or” is used in this disclosure in a non-exclusive sense.
The data processing system 110 includes one or more data processing devices that implement the processes of the various embodiments of the present invention, including the example processes described herein. The phrases “data processing device” or “data processor” are intended to include any data processing device, such as a central processing unit (“CPU”), a desktop computer, a laptop computer, a mainframe computer, a personal digital assistant, a Blackberry™, a digital camera, cellular phone, or any other device for processing data, managing data, or handling data, whether implemented with electrical, magnetic, optical, biological components, or otherwise.
The data storage system 140 includes one or more processor-accessible memories configured to store information, including the information needed to execute the processes of the various embodiments of the present invention, including the example processes described herein. The data storage system 140 may be a distributed processor-accessible memory system including multiple processor-accessible memories communicatively connected to the data processing system 110 via a plurality of computers or devices. On the other hand, the data storage system 140 need not be a distributed processor-accessible memory system and, consequently, may include one or more processor-accessible memories located within a single data processor or device.
The phrase “processor-accessible memory” is intended to include any processor-accessible data storage device, whether volatile or nonvolatile, electronic, magnetic, optical, or otherwise, including but not limited to, registers, floppy disks, hard disks, Compact Discs, DVDs, flash memories, ROMs, and RAMs.
The phrase “communicatively connected” is intended to include any type of connection, whether wired or wireless, between devices, data processors, or programs in which data may be communicated. The phrase “communicatively connected” is intended to include a connection between devices or programs within a single data processor, a connection between devices or programs located in different data processors, and a connection between devices not located in data processors at all. In this regard, although the data storage system 140 is shown separately from the data processing system 110, one skilled in the art will appreciate that the data storage system 140 may be stored completely or partially within the data processing system 110. Further in this regard, although the peripheral system 120 and the user interface system 130 are shown separately from the data processing system 110, one skilled in the art will appreciate that one or both of such systems may be stored completely or partially within the data processing system 110.
The peripheral system 120 may include one or more devices configured to provide digital content records to the data processing system 110. For example, the peripheral system 120 may include digital still cameras, digital video cameras, cellular phones, or other data processors. The data processing system 110, upon receipt of digital content records from a device in the peripheral system 120, may store such digital content records in the data storage system 140.
The user interface system 130 may include a mouse, a keyboard, another computer, or any device or combination of devices from which data is input to the data processing system 110. In this regard, although the peripheral system 120 is shown separately from the user interface system 130, the peripheral system 120 may be included as part of the user interface system 130.
The user interface system 130 also may include a display device, a processor-accessible memory, or any device or combination of devices to which data is output by the data processing system 110. In this regard, if the user interface system 130 includes a processor-accessible memory, such memory may be part of the data storage system 140 even though the user interface system 130 and the data storage system 140 are shown separately in
Sparse representation, a signal processing model inspired by the human visual system (HVS), has gained tremendous attention recently to determine the sparsest information that compactly represents the data at hand. The goal of key frame extraction is to identify the sparsest number of frames required to represent the input video. Applicants have recognized that sparse representation methods can be leverage to design efficient video processing algorithms, such as key frame extraction, scene boundary detection and video summarization.
An embodiment of the present invention will now be described with reference to
For cases where the select set of video frames step 202 selects only a subset of the video frames in the video sequence 200, the subset may be selected using several methods. In some embodiments, a user interface can be provided to enable a user to manually indicate a starting point and an ending point for the set of video frames 205.
Each video frame in the video sequence 200 typically requires over 600,000 bytes of storage. As a result, to reduce memory usage and improve computational efficiency, in some embodiments it can be advantageous to temporally sub-sample the video sequence 200 to select a subset of the video frames 210 separated by a predefined interval (for example, every tenth video frame in the video sequence 200). In some cases, the input video sequence 200 is stored in as a compressed video stream using a scheme where some video frames are encoded independently, and other video frames are encoded using inter-frame coding. In such cases, it can be advantageous to select video frames 210 that are coded independently of other video frames in order to make the extraction of the image data more efficient.
In some embodiments, the select set of video frames step 202 may also perform additional processing operations. For example, the video frames 210 can be spatially sub-sampled to a lower spatial resolution to reduce the number of pixels that must be analyzed.
Much of the image data in each video frame 210 is redundant; the present invention projects each video frame 210 to a lower-dimensional feature space for further processing. An extract feature vectors step 215 is used to analyze the video frames 210 to determine corresponding feature vectors 220 (V1-VN). Any method for extracting feature vectors known in the art can be used in accordance with the present invention. Some examples of other types of features that can be used here include edge direction histograms as described by Vailaya et al. in the article “On image classification: City images vs. landscapes” (Pattern Recognition, vol. 31, pp. 1921-1935, 1998), and SIFT features as described by Lowe in the article “Distinctive image features from scale invariant keypoints” (International Journal of Computer Vision, vol. 60, pp. 91-110, 2004).
In a preferred embodiment, the feature vectors 200 are determined based on luma data for the video frames 210 since most of the spatial detail will be in the luma channel. An extract luma vector step 300 is used to extract a luma vector 305 for each of the video frames 210. For example, the luma channel of the ith video frame 210 (Fi) is extracted and arranged in lexicographic order to provide a corresponding one-dimensional luma vector 305 (Li) for each frame. The luma vector 305 (Li), has length n, where n is the number of pixels in the video frame 210. In some embodiments, the size of the video frame 210 is reduced before forming the luma vector 305 by selecting a subset of the image pixels. In this way, the amount of calculations that need to be performed can be reduced. For example, a subset of the image pixels corresponding to a central region of the video frame can be “cropped” out of the video frame 210. Alternately, the video frame 210 can be spatially sub-sampled to provide a smaller image including a subset of the image pixels before forming the luma vector 305. The sub-sampling process can be performed according to a regular grid (e.g., every third image pixel) to provide a lower spatial resolution image, or can be according to some other predefined sampling pattern.
In other embodiments, the green channel of each video frame 210 can be extracted instead of the luma channel. Alternately, other individual color channels (in any appropriate color space such as RGB or YCrCb), or pixel values for a plurality color channels can be used.
A determine feature vectors step 320 is used to determine the feature vectors 220 (Vi) by projecting the luma vector 305 onto the basis functions 315 to reduce the dimensionality of video frame information. As illustrated in
V
i
=ΦL
i (1)
where Vi is the ith feature vector 220, Li is the ith luma vector 305, and Φ is the projection matrix 330.
It is important to select mappropriately. In a preferred embodiment, the “greedy” approach described by Dimitrova et al., in the article “Video keyframe extraction and filtering: a keyframe is not a keyframe to everyone” (Proc. Sixth International Conference on Information and Knowledge Management, pp. 113-120, 1997), which is incorporated herein by reference, is used to determine m. This approach exploits minimum video length as a cue to determine an appropriate value of m, and has been empirically verified to be effective. In alternate embodiments, other methods for selecting m can be used. For example, Rasheed et al., in the aforementioned article “Detection and representation of scenes in videos,” have described a rather elegant, but computationally expensive, method for selecting m that can be used in accordance with the present invention.
In a preferred embodiment, each basis vector 315 in the projection matrix 330 contains elements that are independently chosen from a normal distribution with a mean of zero and unit variance. In a preferred embodiment, the values in projection matrix basis vector 315 are quantized to −1 and +1, allowing simpler and faster multiplication than with integer or rational coefficients.
Compared to traditional approaches for feature extraction, there are two distinct advantages of using feature vectors 220 extracted using random projections: (i) the feature selection process is less critical (no color or spatio-temporal analysis required), and (ii) computational efficiency as it involves only a matrix multiplication operation.
Returning to a discussion of
In a preferred embodiment, an iterative process is used to form the video frame clusters 250. A select video frame step 225 is used to select a selected video frame 230 (Ft) to be used as the first video frame in a particular video frame cluster. For the first iteration, the first video frame 210 (F1) is generally designated to be the selected video frame 230. For following iterations, the selected video frame 230 is designated to be the next video frame 210 not included in the previous video frame cluster 250.
A form group sparse combination step 235 is used to represent the feature vector for the selected video frame (Vi) as a group sparse combination of the feature vectors 220 (V1, . . . , Vi−1, Vi+i, . . . , VN) corresponding to the other video frames 210 in the set of video frames 205. In a preferred embodiment, the form group sparse combination step 235 uses a group sparse solver to compute weighting coefficients 240 (W1, . . . , Wi−1, Wi+1, . . . , WN) for the features vectors 220 corresponding to each of the other frames in the set of video frames 205. This is generally accomplished by concatenating the feature vectors 220 (V1, . . . , Vi−1, Vi+1, . . . , VN) for all video frames 210 except the selected frame into a large matrix. The group sparse solver returns a vector of weighting coefficients 240 indicating the significance of each video frame 210 in expressing the feature vector 220 (Vi) for the selected video frame 230.
A characteristic of group sparse solvers is that the weighting coefficients 240 for feature vectors 220 corresponding to other video frames 210 that are significantly dissimilar to the selected video frame 230 are set to zero, whereas the weighting coefficients 240 for feature vectors 220 corresponding to other video frames 210 that are similar to the selected video frame 230 will be non-zero. Typically, weighting coefficients having a magnitude below a predefined threshold and are set to zero, where the predefined threshold is chosen to correspond to feature vectors 220 that provide no significant contribution.
A form video frame cluster step 245 is used to analyze the weighting coefficients 240 to form a video frame cluster 250 which starts with the selected video frame 230. In a preferred embodiment, the form video frame cluster step 245 starts with the (i+1)th weighting coefficient 240 (Wi+1) and searches in the forward direction until an insignificant weighting coefficient 240 is found. In some embodiments, an insignificant weighting coefficient 240 is defined to be a weighting coefficient 240 having a value of zero. In a preferred embodiment, an insignificant weighting coefficient 240 is defined to be one having a magnitude of less than a predefined threshold (e.g., 0.2). The video frame cluster 250 is then defined to include the contiguous series of video frames 210 starting with the selected video frame 230 and ending with the video frame 210 prior to the first insignificant weighting coefficient 240 are grouped together to form.
A done test 255 tests if all video frames 210 in the set of video frames 205 have been grouped into video frame clusters 250. If not, then another iteration is performed to determine the next video frame cluster 250, in which the select video frame step 225 selects the next video frame 210 not already grouped into a video frame cluster 250 to be used as the selected video frame 230. In this way, each video frame 210 will be assigned to a video frame cluster, and the determined video frame clusters 250 will be temporally non-overlapping.
Once the done test 255 determines that all of the video frames 210 in the set of video frames 205 have been assigned to video frame clusters 250, processing proceeds to an identify key video frames step 260, where a set of key video frames 265 is selected based on the video frame clusters 250. Any method for selecting a key video frame 265 can be used in accordance with the present invention.
In some embodiments, a key video frame 265 can be selected for each video frame cluster 250. However, in many applications, it will be desirable to select a certain number of key video frames, which will generally be less than the number of video frame clusters 250.
A define target number of key frames step 400 is used to define a target number of key frames 405. In a preferred embodiment, the target number of key frames 405 is defined based on the number of video frames 210 (
T=T
min
+S
γ (2)
where T is the target number of key frames 405, Tmin is a minimum number of key frames, such as 3, S is the number of video frames 210 in the set of video frames 205, and γ is a power between 0.0 and 1.0 (e.g., 0.5). This target number of key frames can also be a function of an estimate of how interesting the video is, for example as described in commonly-assigned U.S. Patent Application 2011/0292288 to Deever, entitled “Method for determining key video,” which is incorporated herein by reference.
Other methods for defining the target number of key frames 405 can be used as well. For example, a user interface can be provided to enable a user to manually specify a desired target number of key frames 405. In other applications, the target number of key frames 405 can be a constant that is independent of the number of video frames 210.
In a preferred embodiment, a merge video frame clusters step 410 is used to merge groups of video frame clusters 250 to provide T merged video frame clusters 415, where T is the target number of key frames 405.
If the number of video frame clusters 250 is greater than the target number of key frames 405, a merge clusters step 460 is used to merge two (or more) of the video frame clusters 250, and control then returns to done test 450. Many methods for clustering can be used to determine which video frame clusters 250 should be merged. Preferably, the video frame clusters 250 that are most similar are merged. In some embodiments, a constraint is imposed that the video frame clusters 250 which are merged are temporally-contiguous with each other. However, in other embodiments, this constraint is relaxed to cover the case where similar image content may be found in different sections of a video sequence 200. Generally, the temporal order of the video frames 210 in the merged video frame clusters 415 should be preserved.
In a preferred embodiment, the merge clusters step 460 identifies the video frame clusters 250 to be merged using the hybrid bipartite graph partitioning algorithm proposed by Fern et al., in the article “Solving cluster ensemble problems by bipartite graph partitioning” (Proc. 21st International Conference on Machine Learning, 2004), which is incorporated herein by reference.
This approach begins by forming an adjacency matrix 480 as illustrated in
The hybrid bipartite graph formulation represents the cluster membership with a bipartite graph, with one set of vertices representing video frames 210 and the other representing video frame clusters 250. This is done by taking the adjacency matrix 480 (A) and using it to form a matrix W, as shown:
If the vertices i and j are both clusters or both instances, W(i, j)=0; otherwise if instance i belongs to cluster j, W(i, j)=W(j, i)=1, and 0 otherwise. This graph can then be partitioned using several techniques. In a preferred embodiment, a spectral graph partitioning algorithm by Ng et al. in the article “On spectral clustering: Analysis and an algorithm” (Advances in Neural Information Processing Systems 14, Vol. 2, 2002), which is incorporated herein by reference, is used. Given the graph G=(V, W), where V is the union of the set of vertices representing the frames and the set of vertices representing clusters and W is given by Eq. (3), the algorithm proceeds as follows:
This approach has the advantage that feature vectors are not used directly; only cluster memberships are used. This reduces the amount of data to be processed, supporting faster execution of cluster merging. Further, it avoids the somewhat complex problem of computing appropriate feature-based distances for merging clusters.
The present invention can also be practiced with any cluster merging algorithm to merge the original video frame clusters 250. In other embodiments, the merge clusters step 460 identifies the video frame clusters 250 to be merged by selecting the middle frame from each cluster, and performing a k-means clustering, such as described by Kanungo et al. in the article “An efficient k-means clustering algorithm: analysis and implementation” (IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 24 No. 7, pp. 881-892, 2002), which is incorporated herein by reference. The k-means clustering can be based on the feature vectors 220 already used to represent each frame for forming video frames clusters 250, though other feature vectors could be formed and used for cluster merging. The advantage of this is that while random projection is efficient for determining frames that are very similar, the statistical distance between dissimilar frames may not correlate as well with human perception.
For merging clusters deemed to be statistically different, it can be advantageous to use other feature vectors. For example, image similarity metrics such as color and edge histograms, and block-based histogram correlation are well known for testing image similarity, for example as used in commonly-assigned U.S. Pat. No. 6,351,556 to Loui et al., entitled “Method for automatically comparing content of images for classification into events,” which is incorporated herein by reference.
In some embodiments, other optional steps can be used within the spirit of the present invention to improve the robustness of the key video frame selection process. For example, an optional discard video frame clusters step 425 can be used to discard extremely small video frame clusters, which are less likely to contain significant scene content. In this case, a minimum cluster size (e.g., 8) can be defined, and any video frame clusters having a smaller number of video frames can be discarded. In this way, only significant video frame clusters 250 are considered for key frame selection. In some cases, a maximum cluster size (e.g., 60 frames), can also be enforced. This can eliminate video segments where no interesting action is occurring.
Returning to a discussion of
There is generally no requirement that the video frame clusters merged by the merge video frame clusters step 410 are temporally contiguous. For example, if a photographer pans the video camera from left to right, and later pans the video camera from right to left, covering the same scene areas at a later time, the video frame clusters having the highest similarity may correspond to noncontiguous portions of the video sequence 200 (
Examples of image quality attributes that can be evaluated to determine the image quality metric include detecting the presence of one or more faces in the video frame, estimating a noise level for the video frame, estimating a blur level for the video frame, and estimating a sharpness level for the video frame. Methods for determining these and other quality attributes are well-known in the art. For example, a method for detecting faces in a digital image is described by Romdhani et al. in the article “Computationally Efficient Face Detection” (Proc. 8th International Conference on Computer Vision, pp. 695-700, 2001); a method for estimating noise in a digital image is described by Liu et al. in the article “Noise estimation from a single image” (IEEE Conference on Computer Vision and Pattern Recognition, pp. 901-908, 2006); and a method for estimating a sharpness level for a digital image is described by Ferzli et al. in the article “A no-reference objective image sharpness metric based on just-noticeable blur and probability summation” (IEEE International Conference on Image Processing, Vol. III, pp. 445-448, 2007). Other examples of image quality attributes that would be related to image quality include detecting rapid motion changes and classifying the video frames using semantic classification algorithms. When a plurality of quality attributes are determined for a given frame, they can be combined using any method known in the art to determine the overall visual quality score for the frame. For example, the image quality attributes can be combined using a weighted summation.
The above-described method for forming video frame clusters 250 using a group sparsity algorithm can also be used for other video processing methods in addition to the selection of key video frames 265. For example,
First, a select representative frames step 600 is used to select representative frames 605 for each of the video frame clusters 250. In a preferred embodiment, a video frame closest to the center of each video frame cluster 250 is selected as the representative frame 605. Because the video frames within each video frame clusters 250 should be similar, the similarity of the video frame clusters 250 can be compared by comparing the representative frames 605.
Next adjacent video frame clusters 250 having representative frames 605 that are sufficiently similar are merged to form the video segments 275. In a preferred embodiment, the method described in the aforementioned U.S. Pat. No. 6,351,556 is used to determine the similarity between the adjacent representative frames 605.
Referring to
A comparison of the global color histogram 615 for pairs of adjacent video frame clusters 250 is performed by using a compute global histogram intersections step 620 to compute global histogram intersection values 625. A preferred method for computing the global histogram intersection values 625 is described in the aforementioned U.S. Pat. No. 6,351,556.
Similarly, a compute block-based histograms step 630 is used to a set of block-based color histograms 635 for each representative frame 605. In this regard, each representative frame 605 is divided into blocks of a given size (e.g., 32×32 pixels). For each block, a color histogram is computed using a process similar to that used in the compute global histograms step 610.
A comparison of the block-based color histograms 635 for pairs of adjacent video frame clusters 250 is performed by using a compute average block-based histogram intersections step 640 to compute average block-based histogram intersection values 645. A preferred method for computing the average block-based histogram intersection values 645 is described in the aforementioned U.S. Pat. No. 6,351,556. In summary, the block-based color histogram for each block in a first representative frame 605 is compared to the corresponding block of an adjacent representative frame 605, and to a set of eight neighboring blocks, to determine intersection values. (The comparison to the neighboring blocks accounts for movement of objects in the scene during the capture of the video sequence 200.) The average block-based histogram intersection value 645 for the pair of adjacent video frame clusters is then determined by computing the average of the largest intersection value for each of the blocks in the first representative frame 605.
A merge similar video clusters 650 is used to merge adjacent pairs of video frame clusters 250 where the representative frames 605 are determined to be sufficiently similar. In a preferred embodiment, to representative frames 605 are said to be sufficiently similar if the corresponding global histogram intersection value 625 is greater than a first threshold (TG) and the corresponding average block-based histogram intersection value 645 is greater than a second threshold (TB). It should be noted that if global histogram intersection value 625 is less than the first threshold (TG), it is unnecessary to compute the average block-based histogram intersection value 645 for that pair of video frame clusters 250. In some cases, a sequence of adjacent video frame clusters 250 may all be merged if each pair of representative frames is determined to be sufficiently similar. The resulting sets of merged vide frame clusters are used for the video segments 275.
The video frame clusters 250 are analyzed using an evaluate video frame image quality step 700. In a preferred embodiment, this involves computing one or more image quality values 705 relating to various image attributes. Preferably, the image quality values 705 include image quality attributes pertaining to estimates of global and local motion for the video frames in a video frame cluster 250. The image quality values 705 can also include other image quality attributes such as sharpness, noise, colorfulness and image composition. Since all of the video frames in a particular video frame cluster 250 should have a high degree of similarity to each other, in a preferred embodiment a representative video frame (e.g., the middle video frame) is selected from each video frame cluster 250 and the video frame image quality is evaluated for only the representative video frame. Computation of the image quality values 705 for only a single video frame per video frame cluster 250 has a significant computation advantage over computing image quality values for all of the video frames. This provides a significant advantage for the method of the present invention relative to methods which rely on evaluating all of the video frames (or a regular sampling of the video frames).
The image quality values 705 are evaluated by a determine cluster importance values step 710 to determine cluster importance values 715. In a preferred embodiment, the cluster importance values are determined responsive to classifications determined for the video frame clusters 250. For example, as described in the aforementioned U.S. Patent Application 2011/0292288, the video frame clusters 250 can be classified as Zoom, Fast Pan, Inactive or Interesting depending on the determined global and local motion characteristics. Different importance values can be assigned depending on the determined classifications. In some embodiments, a Low Quality classification can also be used which is assigned a low cluster importance value 715 (e.g., zero). In some embodiments, the classifications are determined by comparing the determined image quality values 705 to appropriate thresholds. In some cases, it may be appropriate to adjust the thresholds based on the distributions of the image quality values 706 that appear in the video. For example, in a video captured with a high quality camera, a sharpness feature value may range from 0.3 to 0.9, with 0.3 representing poor focus and 0.9 representing in focus. Another video, captured with a lower quality camera, may have sharpness values ranging from 0.1 to 0.4. A fixed sharpness threshold is unlikely to provide best results for both videos. The same reasoning applies for other image quality values 705. While nominal thresholds may apply for most videos, adjustment of the thresholds to improves the ability to summarize videos with a wide range of characteristics.
A form warped time representation step 720 forms a warped time representation 725 by temporal relocation of the video frame clusters 250 responsive to the determined cluster importance values 715 as a function of time. Preferably the time representation is warped in a way that stretches the relative time duration of important clusters relative to the time duration of less important clusters. Additional details regarding the formation of the warmed time representation 725 are described in the aforementioned U.S. Patent Application 2011/0292288. Finally, a form summary step 730 determines the video summary 285 from warped time representation step 750 as will be discussed with reference to
A determine highest-ranked key video frame clusters step 815 ranks the key video frame clusters 815 according to a specified criterion to determine a set of highest-ranked video frame clusters 825. A form key video snippets step 830 then forms key video snippets 835 corresponding to the highest-ranked key video frame clusters 825. In some cases, the key video snippets 835 may contain only a single video frame cluster 250. More generally, the key video snippets 835 can be expanded to include other adjacent video frame cluster 250, for example, to provide a target time duration or to satisfy various criteria such as aligning the boundaries of the key video snippets 835 with lulls in the audio track. A combine key video snippets step 840 then concatenates the key video snippets 835 to form the video summary 285. The aforementioned U.S. Patent Application 2011/0292288 provides information about many other details that are pertinent for the formation of the video summary 285.
A computer program product can include one or more non-transitory, tangible, computer readable storage medium, for example; magnetic storage media such as magnetic disk (such as a floppy disk) or magnetic tape; optical storage media such as optical disk, optical tape, or machine readable bar code; solid-state electronic storage devices such as random access memory (RAM), or read-only memory (ROM); or any other physical device or media employed to store a computer program having instructions for controlling one or more computers to practice the method according to the present invention.
The invention has been described in detail with particular reference to certain preferred embodiments thereof, but it will be understood that variations and modifications can be effected within the spirit and scope of the invention.
Reference is made to commonly assigned, co-pending U.S. patent application Ser. No. 13/413,962, entitled: “Video representation using a sparsity-based model”, by Kumar et al.; to commonly assigned, co-pending U.S. patent application Ser. No. 13/413,982, entitled “Scene boundary determination using sparsity-based model,” by Kumar et al.; to commonly assigned, co-pending U.S. patent application Ser. No. ______ (Docket K000962), entitled “Identifying key frames using group sparsity analysis,” by Kumar et al.; and to commonly assigned, co-pending U.S. patent application Ser. No. ______ (Docket K000999), entitled “Video summarization using group sparsity analysis,” by Kumar et al.; each of which is incorporated herein by reference.