def __init__(self, prms=None): """ :param prms: a set containing which contents to include must be from {'box', 'label', 'attributes', 'occluded', 'lost', 'generated'} :return: list of lists containing vatic information ordered as [frameNumber, labelString, [xmin, ymin, xmax, ymax], attributesStringList, lostBool, occludedBool, generatedBool] with the appropriate arguments ommitted set containing the desired contents (e.g., 'box', 'label', etc.) """ if prms is None: self.returnSet = {'box', 'label', 'attributes'} else: self.returnSet = prms ChainObject.__init__(self, prms)
def __init__(self, prms={}): """ :param prms: prms['object'] defines the object label (e.g., 'Person') prms['occlusion'] defines the level of occlusion (e.g., 'Highly Occluded') prms['activity'] defines the activity (e.g., 'Sitting') Note: if prm is not defined, use all possible values. If it is defined as a string, check that string. Note: if is defined as None, check only when no value is assigned :return: Labels2mAP object """ self.check = {'object': prms.get('object', 'all'), 'occlusion': prms.get('occlusion', 'all'), 'activity': prms.get('activity', 'all')} ChainObject.__init__(self, prms)
def __init__(self, prms='onfloor'): """ :param prms: check logic to be used to determine accuracy formed by combining VATIC strs with logical operators VATIC str to determine truth value: 'label', 'onfloor', 'falling' e.g, 'label' will determine mAP based on successfully matching the label 'onfloor and falling' will check that onfloor matches onfloor and falling matches falling 'onfloor or falling' will check that the prediction is either onfloor or falling when the prediction is either onfloor or falling :return: Labels2mAP object """ self.checkWords = prms[0] if len(prms) > 1: self.checkLogic = prms[-1] else: self.checkLogic = None ChainObject.__init__(self, prms)
def __init__(self, prms='~/vatic/vatic'): """ :param prms: location of vatic directory """ self.vaticPath = prms ChainObject.__init__(self, prms)