MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / bbox

Method bbox

utils/visualizer.py:146–152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

overlay_instancesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected