Ask Your Question

Revision history [back]

click to hide/show revision 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)

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()