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
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