All Projects → ivder → LabelMeYoloConverter

ivder / LabelMeYoloConverter

Licence: other
Convert LabelMe Annotation Tool JSON format to YOLO text file format

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to LabelMeYoloConverter

labelme2coco
How to create custom COCO data set for instance segmentation
Stars: ✭ 125 (+400%)
Mutual labels:  labelme
labelme2Datasets
python scripts to convert labelme-generated-jsons to voc/coco style datasets.
Stars: ✭ 160 (+540%)
Mutual labels:  labelme

LabelMeYoloConverter

Convert LabelMe Annotation Tool JSON format to YOLO text file format. Tested for YOLOv3

Put your dataset (image and JSON format) in dataset/ Output will be saved in result/ JSON format will be moved to json_backup/

Finally, please manually copy text file together with image into 1 folder. (Intentionally separate the image and text output for maintainance purpose)

Example

JSON file

{
  "version": "3.8.1",
  "flags": {},
  "shapes": [
    {
      "label": "1",
      "line_color": null,
      "fill_color": null,
      "points": [
        [
          447,
          287
        ],
        [
          381,
          267
        ]
      ],
      "shape_type": "rectangle"
    }
  ],
  "lineColor": [
    0,
    255,
    0,
    128
  ],
  "fillColor": [
    255,
    0,
    0,
    128
  ],
  "imagePath": "-1289025526.jpg",
  "imageData": "iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAIAA

Convterted to YOLO format text file

1 0.43125 0.512962962963 0.06875 0.037037037037

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].