CVHub520 / X-AnyLabeling

Effortless data labeling with AI support from Segment Anything and other awesome models.
GNU General Public License v3.0
4.26k stars 484 forks source link

建议增加任意顶点四边形的导出 #705

Closed YellowThree-HS closed 2 weeks ago

YellowThree-HS commented 3 weeks ago

Search before asking

Description

因为yolo11-obb是支持任意顶点四边形的,但是当我画完之后,只能导出旋转矩形框,而没办法导出四边形的标注 这是格式: class_index x1 y1 x2 y2 x3 y3 x4 y4

Use case

No response

Additional

No response

Are you willing to submit a PR?

CVHub520 commented 3 weeks ago

Thank you for your feature request. For the case of an arbitrary quadrilateral, I would recommend using a polygon object instead of rotation. The polygon object is better suited for handling arbitrary quadrilateral shapes since it can define any four-point shape without being constrained by rotation parameters.

In X-AnyLabeling, you can achieve this with the polygon annotation, which gives you more flexibility to mark any four-sided shape regardless of its orientation or regularity. This would be more appropriate than trying to extend the rotation feature for this use case.

YellowThree-HS commented 2 weeks ago

对,我用四边形画的,但是导出的时候无法导出yolo格式,直接是空白的txt,只有标注旋转矩形框的时候才能导出yolo格式。 所以最后我自己写了一个脚本,根据你默认的json文件生成yolo格式

CVHub520 commented 2 weeks ago

image

YellowThree-HS commented 2 weeks ago

噢噢get了,thank you!