Mask R-CNN mask coordinates

619 Views Asked by At

Is it possible to get the results or coordinates of the mask detection or the bounding box surrounding the image? I am using Mask R-CNN from matterport and the visualization of the masks on the image works quite good, but I woukd like to save the coordinates.

1

There are 1 best solutions below

3
On

I am not sure how you are using this model. But when you import their model and use the detect method (which is the straightforward way to use their model), then the coordinates are returned immediately.

See for an explanation of what is returned from model.detect this documentation.

In short, per image you get a dict and your coordinates will be the_dict["rois"][1].