Unsupervised learning of event and object classes from video