Automatic Recognition of Human Activities in Realistic Videos