Tag:IOU calculation

  • Examples of IOU calculation in Python computer vision

    Time:2020-9-18

    Where x1, Y1; X2, Y2 represent the center points of the two rectangular frames respectively def calcIOU(x1, y1, w1, h1, x2, y2, w2, h2): if((abs(x1 – x2) < ((w1 + w2)/ 2.0)) and (abs(y1-y2) < ((h1 + h2)/2.0))): left = max((x1 – (w1 / 2.0)), (x2 – (w2 / 2.0))) upper = max((y1 – (h1 […]