jaclearn.vision.coco.pycocotools.cocoeval#

Classes

COCOeval

Params

Params for coco evaluation api

Class COCOeval

class COCOeval[source]#

Bases: object

__init__(cocoGt=None, cocoDt=None, iouType='segm')[source]#

Initialize CocoEval using coco APIs for gt and dt :param cocoGt: coco object with ground truth annotations :param cocoDt: coco object with detection results :return: None

__new__(**kwargs)#
accumulate(p=None)[source]#

Accumulate per image evaluation results and store the result in self.eval :param p: input params for evaluation :return: None

computeIoU(imgId, catId)[source]#
computeOks(imgId, catId)[source]#
evaluate()[source]#

Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None

evaluateImg(imgId, catId, aRng, maxDet)[source]#

perform evaluation for single category and image :return: dict (single image results)

summarize()[source]#

Compute and display summary metrics for evaluation results. Note this functin can only be applied on the default parameter setting

Class Params

class Params[source]#

Bases: object

Params for coco evaluation api

__init__(iouType='segm')[source]#
__new__(**kwargs)#
setDetParams()[source]#
setKpParams()[source]#