COCO-CameraTrap Indexer. An extension to pycocotools including location and sequence indexing.
- Extends / Backwards compatable with pycocotools
- Indexing for Locations and Sequences
pip install pycococt
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: [
# ...
# ]
# ...
# }
- Collection of COCO-CameraTrap datasets available at https://lila.science/category/camera-traps/
- COCO-CameraTrap format definition
MIT