ranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pixellib</span>
<span class="kn">from</span> <span class="nn">pixellib.instance</span> <span class="kn">import</span> <span class="n">custom_segmentation</span>
<span class="kn">import</span> <span class="nn">cv2</span>

<span class="n">segment_frame</span> <span class="o">=</span> <span class="n">custom_segmentation</span><span class="p">()</span>
<span class="n">segment_frame</span><span class="o">.</span><s