Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChartGalaxy/ChartGalaxy
/ box_area
Function
box_area
code_generation_benchmark/utils/utils_eval.py:28–30 ·
view source on GitHub ↗
(box)
Source
from the content-addressed store, hash-verified
26
return
False
27
28
def
box_area(box):
29
# box = xyxy(4,n)
30
return
(box[2] - box[0]) * (box[3] - box[1])
31
32
def
is_visible_xyxy(bbox):
33
# check if the bbox is visible inside [0,1]
Callers
1
eval_scores
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected