Cvat: Support of (Key-)Point formats in CVAT

Created on 11 Nov 2020  ·  10Comments  ·  Source: openvinotoolkit/cvat

Hello everyone,

the issue itself is that, when I export annotations in COCO Format, points are not shown in the json, but polygons are.
I have tried both creating a new task and only annotating points and also combining points and polygons, and neither of them exports the COCO Format with both instances.

Expected Behaviour

The expected behaviour is to be able to export the COCO Format with both points and polygons.

Current Behaviour

The current behaviour is that the COCO Format is not able to export points.

Possible Solution

It would just be a matter of implementing the points inside the COCO Format, so that they can be exported alongside the polygons.

Steps to Reproduce (for bugs)

  1. Create a new task
  2. Set a point
  3. Export in COCO Format

Context

The project that I am actually working in requires both a combination of a mask and a keypoint inside of it, in the most important part of the object. Without the points, the goal cannot be accomplished.

Your Environment

  • Docker version docker version (e.g. Docker 17.0.05): Docker version 19.03.12, build 48a66213fe
  • Are you using Docker Swarm or Kubernetes? No, just Docker (required for the application)
  • Operating System and version (e.g. Linux, Windows, MacOS): Windows
  • Code example or link to GitHub repo or gist to reproduce problem: https://github.com/openvinotoolkit/cvat
enhancement

Most helpful comment

I'm also interested in this.

All 10 comments

I'm also interested in this.

I am looking for this

COCO keypoints are not supported yet, possible solutions are described here: https://github.com/openvinotoolkit/cvat/issues/1784 and https://github.com/openvinotoolkit/cvat/issues/1421#issuecomment-616576420

COCO keypoints are not supported yet, possible solutions are described here: openvinotoolkit/cvat#1784 and #1421 (comment)

@zhiltsov-max I think those workarounds don't work for me because I have less than 3 keypoints, and masks are only supported with at least 3 points.

@zhiltsov-max Also, I think having keypoints in COCO format should be a very common feature.

Yes, I agree with @claverru, having the keypoints in COCO is a very common feature, and in my opinion is an urgent enhancement

I'm also interested in this.

Could you describe the expected output for the points from CVAT when exporting in COCO format? If you want to export them as is, it is possible already, using the way described above.

Hi @zhiltsov-max ,
this is the exact format that is needed:

{ "info": { "contributor": "", "date_created": "", "description": "", "url": "", "version": "", "year": "" }, "images": [ { "id": 1, "width": 1920, "height": 1080, "file_name": "image1.tiff", "license": 0, "flickr_url": "", "coco_url": "", "date_captured": 0 }, ], "licenses": [ { "name": "", "id": 0, "url": "" } ], "categories": [ { "id": 1, "name": "cat1", "supercategory": "" }, { "id": 2, "name": "cat2", "supercategory": "" } ], "annotations": [ { "id": 1, "image_id": 1, "category_id": 1, "segmentation": [ [ 1677.25, 57.33, 1677.55, 55.03, 1679.15, 52.73, 1680.75, 50.53, 1677.25, 57.33 ] ], "area": 277.0, "bbox": [ 1677.25, 35.93, 23.5, 27.2 ], "iscrowd": 0, "attributes": { "occluded": false }, "num_keypoints": 1, "keypoints": [ 1689.55, 50.33, 2 ] } ] }

Thank you very much

Was this page helpful?
0 / 5 - 0 ratings