# pycocotools

> Official APIs for the MS-COCO dataset

- **URL**: https://www.freshcrate.ai/projects/pycocotools
- **Author**: pypi
- **Category**: Developer Tools
- **Latest version**: `2.0.11` (2026-04-21)
- **License**: non-standard
- **Source**: https://github.com/ppwwyyxx/cocoapi
- **Language**: Jupyter Notebook
- **GitHub**: 169 stars, 57 forks
- **Registry**: pypi (`pycocotools`)
- **Tags**: `pypi`

## Description

# pycocotools

This is a fork of the original [cocoapi](https://github.com/cocodataset/cocoapi), with bug fixes and packaging improvements.

This is also the "official" source of the pypi package `pycocotools`, available for download at [pypi](https://pypi.org/project/pycocotools/).

Changes in this fork include:
* Add CircleCI tests
* Support pip-installation correctly
* Support windows
* Don't import matplotlib unless needed
* Close file handle after openning
* Fix a small bug in rleToBbox
* Fix a segfault in RLE decoding
* Fix deprecated usage of other libraries

For compatibility, we will not make any API changes or non-bug behavior changes to the existing APIs of the official cocoapi.

## Instructions for maintainers: to build a sdist package:
```
python -m build --sdist ./PythonAPI
```

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `2.0.11` | 2026-04-21 | Low | Imported from PyPI (2.0.11) |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |
| `master@2026-03-23` | 2026-03-23 | Low | Latest activity on master branch |

## Citation

- HTML: https://www.freshcrate.ai/projects/pycocotools
- Markdown: https://www.freshcrate.ai/projects/pycocotools.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/pycocotools/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
