Labelme
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
https://github.com/wkentaro/labelme/blob/main/labelme/label_file.py 파일을 참고하면 된다.
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
없어서, 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
- labelme 포맷을 coco dataset format으로 변환하기 위한 경량 패키지입니다.
- https://github.com/fcakyon/labelme2coco