Skip to main content

Python interface to the COCO-CameraTrap datasets.

Project description

pycococt

COCO-CameraTrap Indexer. An extension to pycocotools including location and sequence indexing.

Features

  • Extends / Backwards compatable with pycocotools
  • Indexing for Locations and Sequences

Install

pip install pycococt

Usage

from pycococt.cococt import COCOCT

ds = COCOCT('path to COCO-CameraTrap')

# all the core indexes and helpers in pycocotools
ds.imgs
ds.anns
ds.cats
ds.catToImgs
ds.imgToAnns

# with aditional camera trap indexes
ds.locs      # = [
             #   'Location1',
             #   'Location2',
             #   'Location3',
             #   ...
             # ]

ds.locToImgs # = { 'Location1': {
             #        'imageid': {
             #           'id': 'imageid',
             #           'location': 'Location1',
             #           'height': ...
             #         }
             #      },
             #      ...
             #    }

ds.locToSeqs # = {
             #     'Location1': [
             #         'seq id 1_1',
             #         'seq id 1_2',
             #         ...
             #     ],
             #     'Location2': [
             #         'seq id 2_1',
             #         'seq id 2_2',
             #         ...
             #     ]
             #     ...
             # }

ds.seqToImgs # = { 'sequence 1 id': [
             #       {
             #           'id': 'image id',
             #           ...
             #        },
             #        {
             #           'id': 'image id',
             #           ...
             #        },
             #        ...
             #     ],
             #     'sequence 2 id: [
             #       ...
             #     ]
             #       ...
             #    }

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

pycococt-0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pycococt-0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pycococt-0.1.tar.gz.

File metadata

  • Download URL: pycococt-0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.4

File hashes

Hashes for pycococt-0.1.tar.gz
Algorithm Hash digest
SHA256 483bf3ba775c16a9f5b824f56b2ec5ad7f59e27df2a3bb5abcdfacc25203849a
MD5 0359104771f3e969777417a7b9990a41
BLAKE2b-256 89173a57a9428bb7ca78d5ff610e1c02a5b95407125cf6b56ed34c9f0a720bbf

See more details on using hashes here.

File details

Details for the file pycococt-0.1-py3-none-any.whl.

File metadata

  • Download URL: pycococt-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.4

File hashes

Hashes for pycococt-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e4858f0e14b8fae18423fae6655662533d65203d5c2b5e06b0e7be7d87cf25c
MD5 0e1ad3b7c5120bcda916b17b8290b858
BLAKE2b-256 70e485df681b0d65a7f5eb2e2b87c58552d53e80a70ba806c8e1c5ed9c552dd3

See more details on using hashes here.

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