cvtools.evaluation.merge_dets module

class cvtools.evaluation.merge_dets.MergeCropDetResults(gts, results, num_coors=4)[源代码]

基类:object

crop_bbox_map_back(bb, crop_start)[源代码]

子图检测坐标转换为相对于整图的坐标

img_results_to_cat_results(img_results)[源代码]
match_part_img_results(results)[源代码]

结合子图的结果,映射回原图,应用nms, 生成一张整图的结果

merge(nms_method=<function py_cpu_nms>, nms_th=0.15)[源代码]
参数:
  • nms_method -- nms方法必须与bbox表示方式对应, 默认是左上角右下角表示的水平矩形框
  • nms_th -- nms阈值
Returns: 合并后的检测结果
{
filename: [bboxes, labels, scores], filename: [bboxes, labels, scores], ...

}

save_dota_det_format(save_path)[源代码]