Generate annotations data in coco.

Is there a direct option to export annotated polygon image data in the coco format? If not, what's the best way to convert the default prodigy .jsonl file to the coco format?

Have you seen this answer?

It might be a nice example to work from. Prodigy currently does not offer an automated way to get data into the COCO format, but there might be some community examples out there that do.

hi @AnuragTimilsina,

I created a simple script that converts .jsonl to coco:

It can be run by:

python jsonl-to-coco.py prodigy-boundingbox-input.jsonl prodigy-coco.json

I haven't tested it for all cases, but it may help you or someone else.

If anyone finds issues or has suggestions, let us know.

2 Likes