bikz05 / bag-of-words

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

issue while trainig the data #7

Closed MayankSharma-MS closed 8 years ago

MayankSharma-MS commented 8 years ago

I got this error while training the data, please help!!

File "findFeatures.py", line 50, in descriptors = np.vstack((descriptors, descriptor)) File "/usr/lib/python2.7/dist-packages/numpy/core/shape_base.py", line 228, in vstack return _nx.concatenate([atleast_2d(_m) for _m in tup], 0) ValueError: all the input array dimensions except for the concatenation axis must match exactly

bikz05 commented 8 years ago

Based on #3 looks like your images are not at the right place. Try to check the path.