merge_coco

cocohelper.merge.merge_coco(*coco_helpers, drop_duplicates=True)[source]

Merge multiple COCOHelper merging all categories, images and annotations.

Parameters:
  • *coco_helpers (COCOHelper) – the list of COCOHelper datasets to merge.

  • drop_duplicates (bool) – if True, duplicate rows with different ids will be merged together.

Returns:

Merged COCOHelper.

Return type:

COCOHelper