Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Charmve/Surface-Defect-Detection
/ get_union
Function
get_union
DeepPCB/evaluation/script.py:109–112 ·
view source on GitHub ↗
(pD,pG)
Source
from the content-addressed store, hash-verified
107
return
points
108
109
def
get_union(pD,pG):
110
areaA = pD.area();
111
areaB = pG.area();
112
return
areaA + areaB - get_intersection(pD, pG);
113
114
def
get_intersection_over_union(pD,pG):
115
try
:
Callers
1
get_intersection_over_union
Function · 0.85
Calls
1
get_intersection
Function · 0.85
Tested by
no test coverage detected