/shp2coco

a tool to convert .shp file (ArcGIS format) to .json file (COCO datasets).

Primary LanguagePython

shp2coco

shp2coco is a tool to help create COCO datasets from .shp file (ArcGIS format).

It includes:
1:mask tif with shape file.
2:crop tif and mask.
3:slice the dataset into training, eval and test subset.
4:generate annotations in uncompressed RLE ("crowd") and polygons in the format COCO requires.

This project is based on geotool and pycococreator

Usage:

If you need to generate annotations in the COCO format, try the following:
python shape_to_coco.py
If you need to visualize annotations, try the following:
python visualize_coco.py

Example:

example

Thanks to the Third Party Libs

geotool
pycococreator