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

labelme_to_coco中转换shape为polygon框时,有误 #12

Closed
SWHL opened this issue May 9, 2024 · 1 comment
Closed

labelme_to_coco中转换shape为polygon框时,有误 #12

SWHL opened this issue May 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@SWHL
Copy link
Contributor

SWHL commented May 9, 2024

问题描述

当前版本代码,在转换points的shape类型为polygon时,存在默认只取x/y坐标最大和最小值作为矩形四角坐标情况。

这明显不合理,应该去多边形框的最小外接矩形坐标作为该polygon的对应矩形坐标。

所用版本

label_convert==0.1.2

测试代码

# 转换代码
$ labelme_to_coco --data_dir data 

# 可视化代码
$ vis_coco --img_id 1 --json_path data_coco/annotations/instances_train2017.json --img_dir data_coco/train2017

可视化结果

vis_000000000001

附件

归档.zip

@SWHL SWHL self-assigned this May 9, 2024
SWHL added a commit that referenced this issue May 9, 2024
@SWHL SWHL added the bug Something isn't working label May 9, 2024
@SWHL
Copy link
Contributor Author

SWHL commented May 9, 2024

已经在label_convert>=0.1.3中修复

@SWHL SWHL closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant