MCPcopy Create free account
hub / github.com/Yang-Li-2000/Touch-Line-Transformer / get_boxes_equiv

Function get_boxes_equiv

scripts/utils/boxes.py:22–49  ·  view source on GitHub ↗

Given a set of boxes, returns a dict containing clusters of boxes that are highly overlapping. For optimization, return None if none of the boxes are overlapping A high overlap is characterized by the iou_threshold Boxes are expected as [top_left_x, top_left_y, width, height]

(orig_boxes, iou_threshold)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

deduplicate_regionsFunction · 0.90
combine_boxesFunction · 0.85

Calls 5

uniteMethod · 0.95
findMethod · 0.95
UnionFindClass · 0.70
box_iouFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected