Skip to content

showAnns should display bbox even if segmentation is not present #482

@jnothman

Description

@jnothman

Many datasets have bounding boxes and no segmentation. It seems reasonable to support such datasets in a COCO-style format. The current logic in (Python) showAnns requires 'segmentation' to be present to display bounding boxes. Changing the following line to include or 'bbox' in anns[0] would enable showing datasets with bbox but not segmentation annotations;

if 'segmentation' in anns[0] or 'keypoints' in anns[0]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions