Kushaj:

What do you mean by soft edges? I checked internet, is it related to object being faded into the background


The edges of the picture are not clear. So if the animal is selected in white and the background is black, then the edges are in different grey colors.



 Kushaj:

I don’t get it. Your json file will contain image_name: bounding_boxes in that image+class of the box . If the annotations in the json file are correct, then you can do a simple for loop, to get the bounding boxes for each class.


Yes, I get different boxes for different classes. But I only get one Box if there are more than one animal of one class. In my JSON file I got a lot a pictures with segmentation for every selected animal From the JSON file I created the pictures with the mask. On this pictures with the mask I want to create my boundin box. If I have two different animals, I get two correct bounding boxes. If I have two animal of the same kind, I get one big bounding Box insted of two.