react-image-annotate icon indicating copy to clipboard operation
react-image-annotate copied to clipboard

how to filter classes by using different annotation - modes?

Open Fischbrot opened this issue 4 years ago • 2 comments

Thank you guys for making this epic module, it's great!

But I'm struggling to filter out classes.

My situation: I have 9 Classes for bbox, poly, and keypoint - three classes for each type. Let's say bbox has 1,2,3 poly has 4,5,6 point has 7,8,9

When i click on poly it should only be showing 4,5,6. When i click point only 7,8,9 should be available.

Is there a feature that can do this? Or do i have to fork and edit it?

And if so: please tell me what i should edit in the source.

Fischbrot avatar Jan 18 '21 11:01 Fischbrot

Let me understand:

  • You are doing image segmentation
  • You have 9 classes total, bounding boxes have 3 classes, polygons have 3 classes and points have 3 classes

The UDT shows all 9 classes for each of the types, when you would like it to show just the ones specific to the class.

I'm not sure how common of a use case this is, so it might not be worth the added complexity to the project to support it. That said, you would start by proposing the standard via the UDT Format and modifying the react-image-annotate project to support annotation-type-specific labels.

seveibar avatar Jan 18 '21 20:01 seveibar

I don't think this issue is that common to be honest.

We have this structure in our project. We have different labels for different annotation types.

And i can't simply save a polygon label with coordinates to an bbox - type label. Has something todo with being more specific to different models.

That's why i need this filtering function.

I will try and edit your module.

Thanks for your fast response, I really appreciate it

Fischbrot avatar Jan 19 '21 10:01 Fischbrot