Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关coco_box_to_bbox这个函数的问题 #56

Open
Jack-lam1 opened this issue Feb 21, 2022 · 0 comments
Open

有关coco_box_to_bbox这个函数的问题 #56

Jack-lam1 opened this issue Feb 21, 2022 · 0 comments

Comments

@Jack-lam1
Copy link

由coco box 到bbox的转换如果是正框的话可以这样算:
def coco_box_to_bbox(box):
bbox = np.array([box[0]- box[2]/2, box[1] - box[3]/2,
box[0] + box[2]/2, box[1] + box[3]/2],
dtype=np.float32)
ang = float(box[4])
但是如果是旋转框的话,就不能这样算了吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant