TauraBots/Bag-of-Features

error while creating bag

Opened this issue · 3 comments

curr_img = cv2.imread(img_list[0], 0)

IndexError: list index out of range

Did you structure your dataset for creating the bag like the Example dataset in the repo?
And are you passing the arguments correctly?

Yes i did is as per the instruction
python createBag.py Datasets 500 Bags

Traceback (most recent call last):
File "createBag.py", line 63, in
kp_vector, des_vector = calcVectors(image_names)
File "createBag.py", line 16, in calcVectors
curr_img = cv2.imread(img_list[0], 0)
IndexError: list index out of range

Does your dataset contain images?