bikz05 / bag-of-words

Python Implementation of Bag of Words for Image Recognition using OpenCV and sklearn
218 stars 105 forks source link

bag-of-words

alt text Python Implementation of Bag of Words for Image Recognition using OpenCV and sklearn | Video

Training the classifier

python findFeatures.py -t dataset/train/

Testing the classifier

Troubleshooting

If you get

AttributeError: 'LinearSVC' object has no attribute 'classes_'

error, then simply retrain the model.