Labelme
lastmod 2025-04-22created 2019-04-2517 edits
Image Polygonal Annotation with Python.
Description
Labelme is a graphical image annotation tool inspired by http://labelme.csail.mit.edu. It is written in Python and uses Qt for its graphical interface.
Labelme Data Format
Refer to the https://github.com/wkentaro/labelme/blob/main/labelme/label_file.py file.
Sample
{
"version": "5.0.1",
"flags": {},
"shapes": [
{
"label": "smoke",
"points": [
[
993.0232558139534,
594.3521594684385
],
...
[
996.9325153374234,
599.7955010224949
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"label": "can",
"points": [
[
960.4597701149424,
689.1954022988505
],
...
[
960.8045977011493,
708.6206896551723
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
}
],
"imagePath": "220728_01-0061.jpg",
"imageData": null,
"imageHeight": 1080,
"imageWidth": 1920
}
requirements.txt
There isn't one, so refer to the contents of setup.py:
imgviz>=0.11
matplotlib<3.3 # for PyInstaller
natsort>=7.1.0
numpy
Pillow>=2.8
PyYAML
qtpy!=1.11.2
termcolor
Projects
- labelme2coco
- A lightweight package for converting the labelme format to the coco dataset format.
- https://github.com/fcakyon/labelme2coco
See also
Favorite site
Pages that link here