(box1, box2)
| 199 | return max(intersection / union, ratio1, ratio2) |
| 200 | |
| 201 | def is_inside(box1, box2): |
| 202 | # return box1[0] >= box2[0] and box1[1] >= box2[1] and box1[2] <= box2[2] and box1[3] <= box2[3] |
| 203 | intersection = intersection_area(box1, box2) |
| 204 | ratio1 = intersection / box_area(box1) |
| 205 | return ratio1 > 0.95 |
| 206 | |
| 207 | boxes = boxes.tolist() |
| 208 | filtered_boxes = [] |
no test coverage detected