cvtools.cocotools.cocoeval module

class cvtools.cocotools.cocoeval.COCOeval(cocoGt=None, cocoDt=None, iouType='segm')[源代码]

基类:object

accumulate(p=None)[源代码]

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

computeIoU(imgId, catId)[源代码]
computeOks(imgId, catId)[源代码]
evaluate()[源代码]

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

evaluateImg(imgId, catId, aRng, maxDet)[源代码]

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

summarize()[源代码]

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

class cvtools.cocotools.cocoeval.Params(iouType='segm')[源代码]

基类:object

Params for coco evaluation api

setDetParams()[源代码]
setKpParams()[源代码]