In this article I will give an introduction to the Bag of Words implementation of OpenCV 2.2. The Bag of Words model for classification The Bag of Words model (BoW) originated in natural language processing. It makes the simplifying assumption, that the order of the words in a sentence or text document is of negligible importance for classifying it. To describe a document with the BoW model, as a