Metadata-Version: 2.1
Name: coco-utils
Version: 0.0.2
Summary: utility functions for data explorations and metrics calculation on coco data format
Home-page: https://github.com/prakashjayy/coco_utils
Author: Prakash Jay
Author-email: prakashjyy@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: fastcore (>=1.3.27,<2.0.0)
Requires-Dist: pandas (>=1.3.5,<2.0.0)
Requires-Dist: pycocotools (>=2.0.3,<3.0.0)
Requires-Dist: seaborn (>=0.11.2,<0.12.0)
Requires-Dist: torch (>=1.10.1,<2.0.0)
Project-URL: Repository, https://github.com/prakashjayy/coco_utils
Description-Content-Type: text/markdown

# coco_utils
A set of utility functions to process object detection (coco) datasets.


## Summary
- **COCO wrapper**,  Use coco_utils COCO function which has extra properties like `label_counts`, `label_presence`, `img_wise_counts`, `label_names`, `label_names_available`, `count_images`. 

```python
from coco_utils.coco import COCO
x = COCO("data/annotations/instances_val2017.json")
```

- **`plot labels`** function is used to plot and save `labels_correlogram.jpg` and `labels.jpg` files. 

```python
from coco_utils.plots import plot_coco_labels
loc = "data/annotations/instances_val2017.json"
plot_coco_labels(loc, "data/outputs/")
```
