shackenberg / Minimal-Bag-of-Visual-Words-Image-Classifier

Implementation of a content based image classifier using the bag of visual words approach in Python together with Lowe's SIFT and Libsvm.
236 stars 94 forks source link

When `sift` is not present sift.py creates an empty .sift file #1

Closed shackenberg closed 11 years ago

shackenberg commented 11 years ago

When sift is not present sift.py creates an empty .sift file. This empty file raises than an exception the next time learn.py is run even if the sift executable is now present.

Example error message: IOError: /..../data_scv/train/Leopards/image_0001.jpg.sift wrong file path or file empty

shackenberg commented 11 years ago

Bug is caused by using a pipe > to write the output of sift to a file. Bug location in sift.py