Mask_rcnn: How to get the mask area ?

Created on 16 Jul 2018  路  10Comments  路  Source: matterport/Mask_RCNN

I trained my own data use Mask RCNN銆侼ow, I want to calculate mask area through pixel. How to do that?

Most helpful comment

Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()

All 10 comments

Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()

thank you . It worked for me~

@ZengyuanYu @mekomlusa Hey guys... Can you please please help me with finding the feature vector of the detected objects?? Like which layer should I try on?? What changes should I make in model.py file???

This give the total area.
How to get the area of each mask??

This give the total area.
How to get the area of each mask??

Did anyone found the answer to this? I need to find the area of each mask separately.

how can we find number of mask

can we find mask area of single object

Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()

is it for single object

Try this:
np.reshape(r['masks'], (-1, r['masks'].shape[-1])).astype(np.float32).sum()

is it for single object

THis is for a pic with one object in it.

This give the total area.
How to get the area of each mask??

Did anyone found the answer to this? I need to find the area of each mask separately.

Hey, you got some update for this one?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ziyigogogo picture ziyigogogo  路  3Comments

simone-codeluppi picture simone-codeluppi  路  3Comments

Mabinogiysk picture Mabinogiysk  路  3Comments

msson picture msson  路  4Comments

canerozer picture canerozer  路  3Comments