Double constrained bag of words for human action recognition