In matlab I have this function
function psi = encodeImage(encoder, im)
This function takes
imwhich is list of names of imagesencoderwhich isbovw.matI have this file as encoder
This function does bag of visual words encoding and returns the spatial histograms of images.
I use this histograms for training in SVM classifier.
I am doing this task in python and I don't want to implement the bag of visual words encoding as my main task is to implement SVM. Is there a built in function in python that does bag of visual words encoding and returns spatial histograms so I can train SVM classifier on histograms.
https://stackguides.com/questions/13628670/how-can-i-work-with-my-own-dataset-in-scikit-learn-for-computer-vision- Riyaz