Skip to content

How to get bbox from segmentation? #2504

Answered by chiboreache
chiboreache asked this question in Q&A
Discussion options

You must be logged in to vote
            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)],

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chiboreache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant