Beispiel #1
0
def tau_calculation(det_x, det_y, gt_x, gt_y):
    """
    tau = inter_area / det_area
    """
    return np.round(
        (area_of_intersection(det_x, det_y, gt_x, gt_y) / area(det_x, det_y)),
        2)
Beispiel #2
0
def sigma_calculation(det_x, det_y, gt_x, gt_y):
    """
    sigma = inter_area / gt_area
    """
    # print(area_of_intersection(det_x, det_y, gt_x, gt_y))
    return np.round(
        (area_of_intersection(det_x, det_y, gt_x, gt_y) / area(gt_x, gt_y)), 2)