예제 #1
0
 def __init__(self,
              collection,
              dataset,
              detectorMethod,
              rootpath=ROOT_PATH):
     SearchEngine.__init__(self, collection, dataset, rootpath)
     self.reader = AutotagReader(collection,
                                 dataset,
                                 detectorMethod,
                                 rootpath=rootpath)
     self.name = "%s(%s)" % (self.__class__.__name__, self.reader.name)
     self.outputdir = os.path.join(self.outputdir, detectorMethod)
예제 #2
0
class DetectorSearchEngine (SearchEngine):
    def __init__(self, collection, dataset, detectorMethod, rootpath=ROOT_PATH):
        SearchEngine.__init__(self, collection, dataset, rootpath)
        self.reader = AutotagReader(collection, dataset, detectorMethod, rootpath=rootpath)
        self.name = "%s(%s)" % (self.__class__.__name__, self.reader.name)
        self.outputdir = os.path.join(self.outputdir, detectorMethod)
        
    def computeScore(self, concept, photoid):
        return self.reader.get(photoid, concept)
예제 #3
0
class DetectorSearchEngine(SearchEngine):
    def __init__(self,
                 collection,
                 dataset,
                 detectorMethod,
                 rootpath=ROOT_PATH):
        SearchEngine.__init__(self, collection, dataset, rootpath)
        self.reader = AutotagReader(collection,
                                    dataset,
                                    detectorMethod,
                                    rootpath=rootpath)
        self.name = "%s(%s)" % (self.__class__.__name__, self.reader.name)
        self.outputdir = os.path.join(self.outputdir, detectorMethod)

    def computeScore(self, concept, photoid):
        return self.reader.get(photoid, concept)
예제 #4
0
 def __init__(self, collection, dataset, detectorMethod, rootpath=ROOT_PATH):
     SearchEngine.__init__(self, collection, dataset, rootpath)
     self.reader = AutotagReader(collection, dataset, detectorMethod, rootpath=rootpath)
     self.name = "%s(%s)" % (self.__class__.__name__, self.reader.name)
     self.outputdir = os.path.join(self.outputdir, detectorMethod)