Performs object classification using an SVM based on bag-of-words model and spatial pyramid matching