n class="n">preview_url</span><span class="p">)</span>

        <span class="k">if</span> <span class="ow">not</span> <span class="n">camera_client</span><span class="o">.</span><span class="n">captureimage</span><span class="p">():</span>
            <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;captureimage failed&quot;</span><span class="p">)</span>

        <span class="n">camera_client</span><span class="o">.</span><span class="n">set_analytics_state</span><span class="p">