def __init__(self, annotation_file=None): """ Constructor of SALICON helper class for reading and visualizing annotations. :param annotation_file (str): location of annotation file :return: """ COCO.__init__(self,annotation_file=annotation_file)
def __init__(self, annotation_file=None, verbose=True): """ Constructor of Microsoft COCO helper class for reading and visualizing annotations. :param annotation_file (str): location of annotation file :param image_folder (str): location to the folder that hosts images. :return: """ COCO.__init__(self, annotation_file) self.verbose = verbose
def __init__(self, dataset, detection_type='bbox'): supported_detection_types = ['bbox', 'segmentation'] if detection_type not in supported_detection_types: raise ValueError('Unsupported detection type: {}. ' 'Supported values are: {}'.format( detection_type, supported_detection_types)) self._detection_type = detection_type COCO.__init__(self) self.dataset = dataset self.createIndex()
def __init__(self, annotation_file): COCO_.__init__(self, annotation_file) self.imloader = ImageLoader('opencv', 'bgr') self.annotation_file = annotation_file self.showInfo()
def __init__(self, annot_file=None): COCO.__init__(self, annot_file)