MCPcopy
hub / github.com/microsoft/Magma / box_area

Function box_area

agents/ui_agent/util/utils.py:181–182  ·  view source on GitHub ↗
(box)

Source from the content-addressed store, hash-verified

179 assert ocr_bbox is None or isinstance(ocr_bbox, List)
180
181 def box_area(box):
182 return (box[2] - box[0]) * (box[3] - box[1])
183
184 def intersection_area(box1, box2):
185 x1 = max(box1[0], box2[0])

Callers 4

IoUFunction · 0.70
is_insideFunction · 0.70
remove_overlapFunction · 0.70
remove_overlap_newFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected