How to get bbox from segmentation? #2504
Answered
by
chiboreache
chiboreache
asked this question in
Q&A
Replies: 1 comment
-
px = [a[0] for a in anno['points']]
py = [a[1] for a in anno['points']]
obj = {
"bbox": [np.min(px), np.min(py), np.max(px), np.max(py)], |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chiboreache
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i've tried
but sometimes i get results below zero
Beta Was this translation helpful? Give feedback.
All reactions