Esempio n. 1
0
class Search(object):

    def __init__(self):
        self.dumper = Dumper()
        self.query = Query()

    def search_image(self, img, bow_hist, color_hist, metric, sketch):
        return self.query.query_image(img, bow_hist, color_hist, self.dumper.get_img_data(), self.dumper.get_voc_data(), metric, sketch)
Esempio n. 2
0
 def __init__(self):
     self.dumper = Dumper()
     self.query = Query()