lass="p">(</span><span class="s2">&quot;img.jpg&quot;</span><span class="p">,</span> <span class="n">output</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">output</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span>
</pre></div>
</div>
<p><strong>Note:</strong></p>
<p>Access mask’s values  using <em>segmask[‘masks’]</em>, bounding box coordinates using <em>segmask[‘rois’]</em>, class ids using
<em>segmask[‘class_id