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

Clockwise #2

Closed
Elsanna opened this issue May 15, 2019 · 2 comments
Closed

Clockwise #2

Elsanna opened this issue May 15, 2019 · 2 comments

Comments

@Elsanna
Copy link

Elsanna commented May 15, 2019

在提交curved-tiou检测时,报错说需要把坐标按照顺时针方向给出,左上角的坐标为顶点。调整完之后仍然报这个错误,是不是代码逻辑上有问题?

@Yuliang-Liu
Copy link
Owner

Hi there,

Could you please send me your result file so that I can find out what's the problem.

My email is [email protected]

Best regards,
Yuliang Liu

@Yuliang-Liu
Copy link
Owner

Yuliang-Liu commented May 15, 2019

@Elsanna

Did you encounter the problem while using curved_tiou metric? The problem might occur when some of the polygons are not valid (sides intersection). In that case the package Shapely can not properly handle the geometry calculation.

Try add

if not pgt.is_valid: 
    print('GT polygon has intersecting sides.', pts)
    continue

in your ccw-sortdet.py script. I have already updated this file.

Thanks for pointing out this issue.

Looking forward to your reply. If this doesn't work, please feel free to let me know.

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