-
Notifications
You must be signed in to change notification settings - Fork 95
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
请问如何将DOTA数据的8点坐标转换成符合本代码运行规范的五点坐标呢? #24
Comments
因为DOTA数据集里标注的四边形接近矩形框,所以可以先求出上下对边的中心点,俩中心点连接得直线,求直线斜率,便可以求出作者定义的角度,(arctan(x/y) or pai/2 or arctan(x/y)+pai) |
请问怎么根据给定的矩形的四个顶点坐标来生成符合要求的json格式的标签,能分享代码吗?谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
首先很感谢作者的贡献!
因为之前看到的角度都是利用cv2.minAreaRect得到的,范围是(-90,0),位于第一象限。
但是本算法需要的角度是labelImg2得到的,范围(0, 180),位于第一、第四象限,不知道如何转换.
有知道的小伙伴没?
The text was updated successfully, but these errors were encountered: