Annotation (COCO) — VS Code Extension
A visual bounding-box editor for COCO annotation files, built as a VS Code extension.
Features
- Visual bounding-box editor — open
.coco or .coco.json files directly in VS Code with a custom editor
- Annotate from Explorer — right-click any image file to launch the annotation view
- Supported image formats — PNG, JPG, JPEG, WebP, BMP, GIF
Installation
From a .vsix file
code --install-extension coco-0.1.0.vsix
Or: Extensions sidebar → ... menu → Install from VSIX...
Usage
Open a COCO annotation file
Open any .coco or .coco.json file — the custom editor will launch automatically.
Annotate an image
Right-click any image file in the Explorer and select "Annotate with COCO".
This extension works with the COCO JSON format. Example structure:
{
"images": [
{ "id": 1, "file_name": "images/photo.jpg", "width": 640, "height": 480 }
],
"annotations": [
{
"id": 1,
"image_id": 1,
"category_id": 1,
"bbox": [x, y, width, height]
}
],
"categories": [
{ "id": 1, "name": "cat" }
]
}
Requirements
License
MIT