def features(self): if not self._features: img = Image.open(self.image_file) self._features = identification.gen_feature_vect(img, low_quality=False) del img return self._features
def features(self): return identification.gen_feature_vect(self.image, low_quality=True)