),</span> <span class="nb">int</span><span class="p">(</span><span class="n">pos</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>

    <span class="c1"># Compute text size.</span>
    <span class="n">txt</span> <span class="o">=</span> <span class="n">class_str</span>
    <span class="n">font</span> <span class="o">=</span> <span class="n">cv2</span><span class="o">.</span><span class="n">FONT_HERSHEY_SIMPLEX</span>
    <span class="p">((</span><span class="n">txt_w</span><sp