安裝:
pip install labelme
pip uninstall pyqt5 pyqt5-plugins pyqt5-tools pyqtqt6
pip install PyQt5
pip install --upgrade labelme
執行:
labelme
image001.json
# semantic segmentation example
cd examples/semantic_segmentation
labelme data_annotated/ # Open directory to annotate all images in it
labelme data_annotated/ --labels labels.txt # specify label list with a file
Labelme 轉 YOLO 格式
https://github.com/rooneysh/Labelme2YOLO
安裝:
pip install labelme2yolo
邊緣框轉換:
labelme2yolo --json_dir dataset_json
多邊形(Polygon) 座標(實例分割)轉換:
labelme2yolo --json_dir dataset_json --output_format polygon