Research Article

Key-Frame Extraction Based on HSV Histogram and Adaptive Clustering

Algorithm 2

AGNES clustering algorithm for key-frame extraction.
(1)Initialization: each video frame is put into an initial cluster and converted into a one-dimensional vector
(2)Optimal cluster number: calculate the maximum SC index for the value of k
(3)Repeat
(4)Calculate the distance between any two adjacent clusters
(5)Merge two nearest clusters to generate a new cluster
(6)Until the expected k clusters are generated or other termination conditions are satisfied