Skip to content

Instance Segmentation annotations with contour points of mask #538

@dootiedoot

Description

@dootiedoot

Hi, I am trying to figure out a way to generate array of points along the contour of each object in an instance mask such as example below where every instance is assigned a unique color id:

What I'm looking for is points that run along the contour of the instance mask for example below where the white dots encompass the region defines a couch and another region defining the chair:

Currently, the SOLO output of the dataset includes path to segmentation image, instance id, and label color but no points unlike 2D bounding box XY coordinates unless I am missing this information somewhere.

My goal is to create dataset to train with Yolov5's latest v7.0 release that supports instance segmentation and inputs an array of contour points as ground truth data.

I'm thinking it may be possible to run post-process image difference and generate a polygon for each color or finding where the perception camera captures the instance mask and generating points from the mesh's bounding box?

I can see some big caveats with these approaches, so any advice is appreciated.

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