Example #1
0
 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)
Example #2
0
 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
Example #3
0
 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()
Example #4
0
 def __init__(self, annotation_file):
     COCO_.__init__(self, annotation_file)
     self.imloader = ImageLoader('opencv', 'bgr')
     self.annotation_file = annotation_file
     self.showInfo()
Example #5
0
 def __init__(self, annot_file=None):
     COCO.__init__(self, annot_file)