Recognizing Human Actions by a bag of visual words