MCPcopy Index your code
hub / github.com/llSourcell/YOLO_Object_Detection / box_intersection

Function box_intersection

darkflow/utils/box.py:20–25  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

18 return right - left;
19
20def box_intersection(a, b):
21 w = overlap(a.x, a.w, b.x, b.w);
22 h = overlap(a.y, a.h, b.y, b.h);
23 if w < 0 or h < 0: return 0;
24 area = w * h;
25 return area;
26
27def box_union(a, b):
28 i = box_intersection(a, b);

Callers 2

box_unionFunction · 0.85
box_iouFunction · 0.85

Calls 1

overlapFunction · 0.85

Tested by

no test coverage detected