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

bbox annotation format? #5

Open
edwardnguyen1705 opened this issue Sep 22, 2020 · 3 comments
Open

bbox annotation format? #5

edwardnguyen1705 opened this issue Sep 22, 2020 · 3 comments

Comments

@edwardnguyen1705
Copy link

Dear @ZeroE04 ,
Thank you for sharing your work.
I am not clear about the bbox annotation of your dataset. I guess it is in xc, yc, w, h, ang, but I do not know how w, h are measured, parallel to the image coordinates or from the cv2.minAreaRect?

def coco_box_to_bbox(box):

For my dataset

     rect = cv2.minAreaRect(hull)
     xc, yc = rect[0][0], rect[0][1]
     w, h = rect[1][0], rect[1][1]
     angle = rect[2]
     angle = ange_to_0_180(angle)
     rbbox = [xc, yc, w, h, angle]

So, with my bbox annotation, I do not have to use the coco_box_to_bbox function right?
Thank for your time.

@ZeroE04
Copy link
Owner

ZeroE04 commented Oct 21, 2020

Dear @ZeroE04 ,
Thank you for sharing your work.
I am not clear about the bbox annotation of your dataset. I guess it is in xc, yc, w, h, ang, but I do not know how w, h are measured, parallel to the image coordinates or from the cv2.minAreaRect?

def coco_box_to_bbox(box):

For my dataset

     rect = cv2.minAreaRect(hull)
     xc, yc = rect[0][0], rect[0][1]
     w, h = rect[1][0], rect[1][1]
     angle = rect[2]
     angle = ange_to_0_180(angle)
     rbbox = [xc, yc, w, h, angle]

So, with my bbox annotation, I do not have to use the coco_box_to_bbox function right?
Thank for your time.

I'm very sorry to hear from you so late.
For the concept of w and h, please refer to the original project of CenterNet:
https://github.com/xingyizhou/centernet

and, i am push the labelGenerator of this work, you can have a look, good luck for you!

@gengyanlei
Copy link

这个和opencv版本有关,不同版本的opencv角度定义不一样,需要注意
https://blog.csdn.net/LEILEI18A/article/details/115006688

@zhaozhiyi11
Copy link

这个和opencv版本有关,不同版本的opencv角度定义不一样,需要注意
https://blog.csdn.net/LEILEI18A/article/details/115006688

请问博主知道怎样从minAreaRect函数标记的box转换到Rcenternet可用的box

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

4 participants