Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in createBag.py #2

Open
sonal-bansal opened this issue Jul 23, 2018 · 0 comments
Open

problem in createBag.py #2

sonal-bansal opened this issue Jul 23, 2018 · 0 comments

Comments

@sonal-bansal
Copy link

ValueError Traceback (most recent call last)
in ()
5 print("Calculating features for category", c)
6 image_names =os.listdir(c)
----> 7 kp_vector, des_vector = calcVectors(image_names,c)
8 # print(des_vector)
9 # defining category with the lowest number of keypoints

in calcVectors(img_list, c)
18
19 kp_vector = np.append(kp_vector, kp_i, axis=0)
---> 20 des_vector = np.append(des_vector, des_i, axis=0)
21 curr_n += 1
22 print("Image", curr_n, "of", max_n)

~\Anaconda3\lib\site-packages\numpy\lib\function_base.py in append(arr, values, axis)
5150 values = ravel(values)
5151 axis = arr.ndim-1
-> 5152 return concatenate((arr, values), axis=axis)

ValueError: all the input arrays must have same number of dimensions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant