SkillAgentSearch skills...

Shp2coco

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

Install / Use

/learn @Dingyuan-Chen/Shp2coco
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

shp2coco

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

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

This project is based on geotool and pycococreator

Usage:

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

Example:

example

Thanks to the Third Party Libs

geotool<br> pycococreator<br>

View on GitHub
GitHub Stars58
CategoryDevelopment
Updated4mo ago
Forks12

Languages

Python

Security Score

77/100

Audited on Nov 24, 2025

No findings