How to train and predict using bag of words?
I have a folder of images of a car from every angle. I want to use the bag of words approach to train the system in recognizing the car. Once the training is done, I want that if an image of that car is given it should be able to recognize it. I have been trying to learn the BOW function in opencv in order to make this work and have come at a level where I do not know what to do now and some guidance would be appreciated. Here is my code that I used to make the bag of words: Ptr<FeatureDetector> features = FeatureDetector::create("SIFT"); Ptr<DescriptorExtractor> descriptors =