Skip to main content

Official APIs for the MS-COCO dataset

Project description


This is a fork of the original cocoapi, with bug fixes and packaging improvements.

This is also the source of the pypi package pycocotools, available for download at pypi.

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycocotools-2.0.7.tar.gz (25.0 kB view hashes)

Uploaded source

Built Distributions

pycocotools-2.0.7-cp311-cp311-win_amd64.whl (85.8 kB view hashes)

Uploaded cp311

pycocotools-2.0.7-cp310-cp310-win_amd64.whl (84.9 kB view hashes)

Uploaded cp310

pycocotools-2.0.7-cp39-cp39-win_amd64.whl (85.1 kB view hashes)

Uploaded cp39

pycocotools-2.0.7-cp38-cp38-win_amd64.whl (85.3 kB view hashes)

Uploaded cp38

pycocotools-2.0.7-cp37-cp37m-win_amd64.whl (84.6 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page