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

Function combine_boxes

scripts/utils/boxes.py:61–72  ·  view source on GitHub ↗

Given a set of boxes, returns the average of all clusters of boxes that are highly 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=0.7)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

preprocess_regionFunction · 0.90
helper_mergeFunction · 0.90

Calls 3

get_boxes_equivFunction · 0.85
xyxy_to_xywhFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected