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

How to export data to COCO format while keeping polygon data? #8855

Open
StepanVL opened this issue Dec 20, 2024 · 1 comment
Open

How to export data to COCO format while keeping polygon data? #8855

StepanVL opened this issue Dec 20, 2024 · 1 comment

Comments

@StepanVL
Copy link

Hi. I have annotated datasets of images in CVAT.
I want to try detection approach rather than segmentation approach. I have two classes of objects:

  • target objects are convex polygons that can be converted to circumscribing rectangles without loss of accuracy
  • "bad_image" polygons of irregular concave that represent areas that should be excluded from the loss (and metrics) calculation

What is the best way to export data in coco format with rectangles kept as rectangles and polygons kept in two copies: as rectangle and as a polygon? I can write a custom parser, but I don't want to reinvent a tool if it already exists.

@zhiltsov-max
Copy link
Contributor

Hi, CVAT doesn't force annotation representation on export in the COCO format. Rectangles are saved as bbox only, polygons are saved as polygons, and masks are saved as RLE.

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