span class="o">=</span> <span class="n">cv2</span><span class="o">.</span><span class="n">VideoCapture</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>

<span class="n">segment_camera</span> <span class="o">=</span> <span class="n">custom_segmentation</span><span class="p">()</span>
<span class="n">segment_camera</span><span class="o">.</span><span class="n">inferConfig</span><span class="p">(</span><span class="n">num_classes</span><span class="o">=</span><span class="mi">2</