Skip to content
Blog

Three checks before sharing a COCO export

Open the files, trace a polygon, and check the category using a small synthetic dataset.

A synthetic sample image with a segmentation polygon

A COCO JSON file describes how images, categories, and annotations relate. A quick check catches mismatched filenames and out-of-bounds polygons before the dataset moves downstream.

Check the filenames

Open an image named in the images list. Match the annotation’s image_id to that image’s record.

Check the outline

Read the polygon coordinates as x/y pairs and confirm they trace the object.

Polygon over a synthetic sample imageThe mask is synthetic and included for inspecting the export format.

Check the category

Match category_id to a category and make sure its name is clear to whoever will use the export.

Inspect one image end to end before reviewing the rest of the dataset.

Try these checks on the COCO segmentation sample and guide.

Share this article
LinkedInX

PolyCut

Product team

We build PolyCut, an offline-first iPad app for labeling images and video.