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

Method bbox

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

Source from the content-addressed store, hash-verified

141 return self.mask.sum()
142
143 def bbox(self):
144 p = mask_util.frPyObjects(self.polygons, self.height, self.width)
145 p = mask_util.merge(p)
146 bbox = mask_util.toBbox(p)
147 bbox[2] += bbox[0]
148 bbox[3] += bbox[1]
149 return bbox
150
151
152class _PanopticPrediction:

Callers 1

overlay_instancesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected