kushalvyas / Bag-of-Visual-Words-Python

Implementing Bag of Visual words approach for object classification and detection

Home Page:https://kushalvyas.github.io/BOV.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Windows User

masonreznov opened this issue · comments

  • Use the following code in helpers.py if the system is windows
  • Otherwise the "\" notation for windows will create problems
#line number 139
for each in glob("{}/*".format(path)):
	key = each.split("/")[-1]
	key = key.split("\\""")[-1]
	print(" #### Reading image category ", key, " ##### ")
	imlist[key] = []
	for imagefile in glob(path+key+"/*.jpg"):
		print("Reading file ", imagefile)
		im = cv2.imread(imagefile)
		imlist[key].append(im)
		count +=1