MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / is_overlap

Function is_overlap

flow-python/examples/application/utils.py:32–34  ·  view source on GitHub ↗
(rect1: np.array, rect2: np.array, iou_thr: float)

Source from the content-addressed store, hash-verified

30
31
32def is_overlap(rect1: np.array, rect2: np.array, iou_thr: float) -> bool:
33 ov = iou(rect1, rect2)
34 return ov >= iou_thr
35
36
37def shrink_rect(rect):

Callers

nothing calls this directly

Calls 1

iouFunction · 0.85

Tested by

no test coverage detected