<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.1.0</li>
<li>Operating System / Platform =&gt; Ubuntu</li>
<li>Compiler =&gt; g++</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">OpenCV should have a feature to select the number of CPU cores used for inference when using OpenVINO inference engine as backend.<br>
Right now, this can be only achieved using OpenVINO IE API.</p>
<hr>
<p dir="auto">In op_inf_engine.cpp file at<br>
<a href="https://github.com/opencv/opencv/blob/master/modules/dnn/src/op_inf_engine.cpp">https://github.com/opencv/opencv/blob/master/modules/dnn/src/op_inf_engine.cpp</a></p>
<p dir="auto">function</p>
<p dir="auto"><code class="notranslate">void InfEngineBackendNet::initPlugin(InferenceEngine::ICNNNetwork&amp; net)</code></p>
<p dir="auto">can accept the number of CPU cores (num_cores) parameter when DNN_TARGET_CPU is selected.</p>
<p dir="auto">This can be further passed as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="std::map cpu_config&lt;std::string, std::string&gt;
cpu_config[InferenceEngine::PluginConfigParams::KEY_CPU_THREADS_NUM]=std::string(num_cores)
netExec = plugin.LoadNetwork(net, cpu_config);"><pre class="notranslate"><code class="notranslate">std::map cpu_config&lt;std::string, std::string&gt;
cpu_config[InferenceEngine::PluginConfigParams::KEY_CPU_THREADS_NUM]=std::string(num_cores)
netExec = plugin.LoadNetwork(net, cpu_config);
</code></pre></div>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li>
<li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li>
<li>Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li>
</ul>
<h5 dir="auto">Detailed description</h5>

<h5 dir="auto">Steps to reproduce</h5>