'Mask R-CNN mask coordinates
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.
Solution 1:[1]
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]
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Michel Kok |