Calculating percentage of Bounding box overlap, for image detector evaluation

后端 未结 7 2014
遥遥无期
遥遥无期 2020-12-05 01:17

In testing an object detection algorithm in large images, we check our detected bounding boxes against the coordinates given for the ground truth rectangles.

Accordi

7条回答
  •  自闭症患者
    2020-12-05 01:39

    how about this approach? Could be extended to any number of unioned shapes

    surface = np.zeros([1024,1024])
    surface[1:1+10, 1:1+10] += 1
    surface[100:100+500, 100:100+100] += 1
    unionArea = (surface==2).sum()
    print(unionArea)
    

提交回复
热议问题