brails.processors.nfloors_detector.lib.efficientdet.coco module
- class brails.processors.nfloors_detector.lib.efficientdet.coco.COCO(annotation_file=None)
Bases:
object
- createIndex()
- getAnnIds(imgIds=[], catIds=[], areaRng=[], iscrowd=None)
Get ann ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get anns for given imgs
catIds (int array) : get anns for given cats areaRng (float array) : get anns for given area range (e.g. [0 inf]) iscrowd (boolean) : get anns for given crowd label (False or True)
- Returns:
ids (int array) : integer array of ann ids
- getCatIds(catNms=[], supNms=[], catIds=[])
filtering parameters. default skips that filter. :param catNms (str array) : get cats for given cat names :param supNms (str array) : get cats for given supercategory names :param catIds (int array) : get cats for given cat ids :return: ids (int array) : integer array of cat ids
- getImgIds(imgIds=[], catIds=[])
Get img ids that satisfy given filter conditions. :param imgIds (int array) : get imgs for given ids :param catIds (int array) : get imgs with all given cats :return: ids (int array) : integer array of img ids
- info()
Print information about the annotation file. :return:
- loadAnns(ids=[])
Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : loaded ann objects
- loadCats(ids=[])
Load cats with the specified ids. :param ids (int array) : integer ids specifying cats :return: cats (object array) : loaded cat objects
- loadImgs(ids=[])
Load anns with the specified ids. :param ids (int array) : integer ids specifying img :return: imgs (object array) : loaded img objects