Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

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

frompycococt.cococtimportCOCOCTds=COCOCT('path to COCO-CameraTrap')
# all the core indexes and helpers in pycocotoolsds.imgsds.annsds.catsds.catToImgsds.imgToAnns# with aditional camera trap indexesds.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: [# ...# ]# ...# }

Related

License

MIT

About

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

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages