An Efficient method of key-frame extraction based on a cluster algorithm