1 | initial version |
try adding your descriptors directly to your BOW:
gray = cv2.cvtColor(image, cv2.CV_LOAD_IMAGE_GRAYSCALE)
kp, dsc= sift.detectAndCompute(gray, None)
BOW.add(dsc)
2 | No.2 Revision |
try adding your descriptors directly to your BOW:
gray = cv2.cvtColor(image, cv2.CV_LOAD_IMAGE_GRAYSCALE)
kp, dsc= sift.detectAndCompute(gray, None)
BOW.add(dsc)
## later:
dictionary = BOW.cluster()