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

Empty Coordinates in COCO and VOC Format After Annotating Rotated Boxes #397

Open
Taichipeace opened this issue May 4, 2024 · 4 comments
Labels
question Further information is requested

Comments

@Taichipeace
Copy link

您好,我使用的是 2.3.5版本的X-AnyLabeling,
Device:CPU

旋转框检测任务,标注好之后,
查看原始的.json文件中是有坐标的:

{
  "version": "2.3.5",
  "flags": {},
  "shapes": [
    {
      "direction": 6.153185307179589,
      "label": "nikuai",
      "points": [
        [
          374.2160084991766,
          193.00546283783507
        ],
        [
          1201.3242090501867,
          84.87155499830322
        ],
        [
          1228.9803201598143,
          296.4110873350805
        ],
        [
          401.872119608804,
          404.54499517461227
        ]
      ],
      "group_id": null,
      "description": "",
      "difficult": false,
      "shape_type": "rotation",
      "flags": {},
      "attributes": {}
    },

导出coco格式时,自己建了一个txt,里面是1个标签 “nikuai”
提示导出成功,但是 instances_default.json 文件中的 "segmentation": 为 [ ]

{
            "id": 866,
            "image_id": 75,
            "category_id": 1,
            "bbox": [],
            "area": 0,
            "iscrowd": 0,
            "ignore": 0,
            "segmentation": []
        },

又尝试导出为VOC格式,xml文件里也没有坐标信息:

<?xml version="1.0" ?>
<annotation>
  <folder>C:\Users\tc\Downloads\annotations</folder>
  <filename>00123.jpg</filename>
  <size>
    <width>2160</width>
    <height>3840</height>
    <depth>3</depth>
  </size>
</annotation>

请问,该如何把旋转框标注信息正确导出为COCO格式??

@CVHub520
Copy link
Owner

CVHub520 commented May 6, 2024

您好,旋转框目前仅支持导出DOTA格式和YOLO的txt格式。

@CVHub520 CVHub520 added the question Further information is requested label May 6, 2024
@Taichipeace
Copy link
Author

您好,旋转框目前仅支持导出DOTA格式和YOLO的txt格式。

@CVHub520 感谢回复。

另外有个小请求:
在标注旋转框的时候,
因为每个框通常都挨得比较紧密,
所以在拖动四角调整框的大小时,
鼠标很难选准角点,
经常在当前框和相邻框之间切换,
是否可以取消鼠标悬浮切换旋转框?
改成单击选中当前框,然后可以方便准确的拖动四角?
非常感谢。

@CVHub520
Copy link
Owner

CVHub520 commented May 7, 2024

您好,旋转框目前仅支持导出DOTA格式和YOLO的txt格式。

@CVHub520 感谢回复。

另外有个小请求: 在标注旋转框的时候, 因为每个框通常都挨得比较紧密, 所以在拖动四角调整框的大小时, 鼠标很难选准角点, 经常在当前框和相邻框之间切换, 是否可以取消鼠标悬浮切换旋转框? 改成单击选中当前框,然后可以方便准确的拖动四角? 非常感谢。

您好,如果是重叠交叉影响调整,可以尝试通过快捷键 sw 来隐藏/显示选中的shapes。

@Taichipeace
Copy link
Author

好的,我试试,感谢。

@CVHub520 CVHub520 changed the title 旋转框检测标注后,导出的coco和voc格式中的坐标为空。 Empty Coordinates in COCO and VOC Format After Annotating Rotated Boxes May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants