MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / area

Method area

detectron2/utils/visualizer.py:140–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 return mask_util.decode(rle)[:, :]
139
140 def area(self):
141 return self.mask.sum()
142
143 def bbox(self):
144 p = mask_util.frPyObjects(self.polygons, self.height, self.width)

Callers 2

overlay_instancesMethod · 0.45
draw_binary_maskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected