UAVVaste / VoTT2COCO

Script that converts VoTT json files to COCO format. Keeps images, bboxes, and masks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VoTT2COCO

Script that converts VoTT json files to COCO format. Keeps images, bboxes, and masks.

Usage

Modify/create yaml file

dataset:
  source:
    path: '/home/bartosz/UAVVaste_vott/'   ### main catalog
    img_cat: images                        ### name of sub-catalogs with images
    anno_cat: annotations                  ### name of sub-catalog with annotations jsons
  destination:
    path: '/home/bartosz/UAVVaste_coco/'
    img_cat: images
    anno_file: annotations.json

info:
  year: 2020 
  version: v1 
  description: UAVVaste dataset 
  contributor: None
  url: https://uavvaste.ithub.io/

Run script

python vott2coco.py -c conver_config.yml

About

Script that converts VoTT json files to COCO format. Keeps images, bboxes, and masks.

License:Apache License 2.0


Languages

Language:Python 100.0%