# Generate annotations data in coco.

**URL:** <https://support.prodi.gy/t/generate-annotations-data-in-coco/6345>\
**Category:** Uncategorized\
**Created:** [February 4, 2023, 1:38pm UTC](https://support.prodi.gy/t/generate-annotations-data-in-coco/6345 "2023-02-04T13:38:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnuragTimilsina](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/anuragtimilsina/32/3595_2.png) [@AnuragTimilsina](https://support.prodi.gy/u/AnuragTimilsina)\
**Post date:** [February 4, 2023, 1:38pm UTC](https://support.prodi.gy/t/generate-annotations-data-in-coco/6345/1 "2023-02-04T13:38:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![koaning](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/koaning/32/230_2.png) [@koaning](https://support.prodi.gy/u/koaning)\
**Post date:** [February 6, 2023, 10:03am UTC](https://support.prodi.gy/t/generate-annotations-data-in-coco/6345/2 "2023-02-06T10:03:22Z")

</div>

Have you seen this answer?

> [@Datasets and using pre-annotated data](https://support.prodi.gy/t/datasets-and-using-pre-annotated-data/1476/26):
>
> I just made a demo COCO display recipe that allows me to simply visualize the dataset and review it for correctness It might be a good starting point for your own workflow

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.

---

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [April 6, 2023, 1:45pm UTC](https://support.prodi.gy/t/generate-annotations-data-in-coco/6345/3 "2023-04-06T13:45:48Z")

</div>

hi @AnuragTimilsina,

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

> <https://gist.github.com/wesslen/f345e7155f2ce7800e52bdda66a2c9b2>

It can be run by:

```python
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.
