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

为什么数据输入是x,y,w,h,theta;检测输出是四点坐标? #17

Open
ulyduts opened this issue Sep 6, 2023 · 2 comments
Open

Comments

@ulyduts
Copy link

ulyduts commented Sep 6, 2023

你好,我想问一下为什么数据输入的是x,y,w,h,theta,在detect里面检测输出的是x1,y1,...x4,y4的四点坐标格式呢?可以直接输出x,y,w,h,theta的格式吗?

@lx-cly
Copy link
Owner

lx-cly commented Sep 6, 2023

因为 detect中102行“pred_poly = rbox2poly(det[:, :5])”,转成了四点,方便画图等后续操作;可以利用utils/rboxs_utils.py中的poly2rbox函数。

@ulyduts
Copy link
Author

ulyduts commented Sep 9, 2023

谢谢大佬,如果想直接输出x,y,w,h,theta的格式,应该要怎么修改呢?

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

2 participants