Bag-of-features image classification using OpenCV