<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I'll take a look to the in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135169#M9452</link>
    <description>&lt;P&gt;I'll take a look to the example, but I don't know it it can help me..&lt;/P&gt;&lt;P&gt;About the second question.&lt;/P&gt;&lt;P&gt;The res object, the output of:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;exec_net.requests[cur_request_id].outputs[out_blob]&lt;/PRE&gt;

&lt;P&gt;command, should contain the result of prediction, correct? It should contain also the position, in terms of coordinates, of the detected object. Correct?If yes, how can I extract the position information if my res object has another form ((1,&amp;nbsp;38))?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 17:36:48 GMT</pubDate>
    <dc:creator>MCurc</dc:creator>
    <dc:date>2019-08-13T17:36:48Z</dc:date>
    <item>
      <title>OpenVINO inference engine python</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135159#M9442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using this OpenVINO example file for a object detection case:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/opencv/open_model_zoo/blob/master/demos/python_demos/object_detection_demo_ssd_async/object_detection_demo_ssd_async.py" target="_blank"&gt;https://github.com/opencv/open_model_zoo/blob/master/demos/python_demos/object_detection_demo_ssd_async/object_detection_demo_ssd_async.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with a NCS and a USB camera.&lt;/P&gt;&lt;P&gt;I'm also using a custom xml and bin model.&lt;/P&gt;&lt;P&gt;I have a res object that should contain the result of inference:&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;res = exec_net.requests[cur_request_id].outputs[out_blob]&lt;/PRE&gt;

&lt;P&gt;The output of res object is:&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;[ INFO ] [[0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
  0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]&lt;/PRE&gt;

&lt;P&gt;that is not good for the for cycle (and I really don't understand the content of the object):&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;for obj in res[0][0]:
    if obj[2] &amp;gt; args.prob_threshold:&lt;/PRE&gt;

&lt;P&gt;if i try to print "res.shape" i have some element like:&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;(1, 38)&lt;/PRE&gt;

&lt;P&gt;I would understand where I can find the inference result in res object.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 17:42:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135159#M9442</guid>
      <dc:creator>MCurc</dc:creator>
      <dc:date>2019-07-28T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Dear Curci, Matteo</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135160#M9443</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Curci, Matteo&lt;/P&gt;&lt;P&gt;In that code you referenced, the output (inference results) are exactly found in this part:&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;# Parse detection results of the current request
            res = exec_net.requests[cur_request_id].outputs[out_blob]
            for obj in res[0][0]:
                # Draw only objects when probability more than specified threshold
                if obj[2] &amp;gt; args.prob_threshold:
                    xmin = int(obj[3] * initial_w)
                    ymin = int(obj[4] * initial_h)
                    xmax = int(obj[5] * initial_w)
                    ymax = int(obj[6] * initial_h)
                    class_id = int(obj[1])
                    # Draw box and label\class_id
                    color = (min(class_id * 12.5, 255), min(class_id * 7, 255), min(class_id * 5, 255))
                    cv2.rectangle(frame, (xmin, ymin), (xmax, ymax), color, 2)
                    det_label = labels_map[class_id] if labels_map else str(class_id)
                    cv2.putText(frame, det_label + ' ' + str(round(obj[2] * 100, 1)) + ' %', (xmin, ymin - 7),
                                cv2.FONT_HERSHEY_COMPLEX, 0.6, color, 1)&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using OpenVino !&lt;/P&gt;
&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 21:53:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135160#M9443</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-07-31T21:53:26Z</dc:date>
    </item>
    <item>
      <title>No, because if I use:</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135161#M9444</link>
      <description>&lt;P&gt;No, because if I use:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;for obj in res[0][0]:

                # Draw only objects when probability more than specified threshold

                if obj[2] &amp;gt; args.prob_threshold:

&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have an error, because it doesnt exists res[0][0] element.&lt;/P&gt;
&lt;P&gt;If I do:&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;for obj in res:

                # Draw only objects when probability more than specified threshold

                if obj[2] &amp;gt; args.prob_threshold:
&lt;/PRE&gt;

&lt;P&gt;the code works but I have:&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;[ INFO ] [[0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
2
  0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:25:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135161#M9444</guid>
      <dc:creator>MCurc</dc:creator>
      <dc:date>2019-08-01T07:25:17Z</dc:date>
    </item>
    <item>
      <title>Dear Curci, Matteo</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135162#M9445</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Curci, Matteo&lt;/P&gt;&lt;P&gt;If you are using the OpenVino sample without changes ("as is"), a USB camera and NCS - then your errors seem to indicate&amp;nbsp;that&amp;nbsp;data is not getting to the openvino application. Perhaps it's the USB camera, but honestly, I don't know. To troubleshoot this, I'd eliminate the USB camera first and just try the webcam on your laptop. Also I would use "CPU" first instead of "MYRIAD". Once you eliminate hardware issues, you can slowly build up and re-try usb-camera and NCS.&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 21:50:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135162#M9445</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-02T21:50:05Z</dc:date>
    </item>
    <item>
      <title>Sorry but now I tried with:</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135163#M9446</link>
      <description>&lt;P&gt;Sorry but now I tried with:&lt;/P&gt;&lt;P&gt;- Ubuntu&lt;/P&gt;&lt;P&gt;- Openvino 2019&lt;/P&gt;&lt;P&gt;- NCS&lt;/P&gt;&lt;P&gt;- laptop camera&lt;/P&gt;&lt;P&gt;I run both object_detection_ssd_sample and classification_sample, but I have this error:&lt;/P&gt;&lt;P&gt;&lt;A href="https://imgur.com/8A1brSh" target="_blank"&gt;https://imgur.com/8A1brSh&lt;/A&gt;&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;numpy float32&amp;nbsp;object is not iterable&lt;/PRE&gt;

&lt;P&gt;It's simply your example with default hardware...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 18:14:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135163#M9446</guid>
      <dc:creator>MCurc</dc:creator>
      <dc:date>2019-08-03T18:14:00Z</dc:date>
    </item>
    <item>
      <title>Dear Curci, Matteo,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135164#M9447</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Curci, Matteo,&lt;/P&gt;&lt;P&gt;This error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;numpy float32&amp;nbsp;object is not iterable&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Has nothing to do with OpenVino. It is a side-effect of the real problem, which is that the sample is not finding your NCS2 device. Which version of Ubuntu are you using ? Are you using OpenVino 2019R2 ? Please install Ubuntu 16.04 (not 18) to get things working. It can work with 18 but there is an issue with NCS/MYRIAD drivers on Ubuntu 18. It can be fixed by extracting the Ubuntu 16.04 RPM, locating the drivers and putting them in the right place in Ubuntu 18, but it would be easier to just go with Ubuntu 16.04 to start until you get things working.&lt;/P&gt;&lt;P&gt;Thanks for your patience !&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:56:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135164#M9447</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-07T21:56:46Z</dc:date>
    </item>
    <item>
      <title>Ehm...I'm working with NCS,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135165#M9448</link>
      <description>&lt;P&gt;Ehm...I'm working with NCS, the first version, on Ubuntu 16.04.&lt;/P&gt;&lt;P&gt;Also, if I run python script samples, the NCS device works correctly....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model that I'm using, does classification on 38 classes, and return an array prediction, where 1 is the class predicted.&amp;nbsp;This could be the problem? Maybe the model is different from the samples model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:19:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135165#M9448</guid>
      <dc:creator>MCurc</dc:creator>
      <dc:date>2019-08-08T14:19:37Z</dc:date>
    </item>
    <item>
      <title>Dear Curci, Matteo</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135166#M9449</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Curci, Matteo&lt;/P&gt;&lt;P&gt;If we are still talking about the error in your screenshot above, I see "Cannot Init MYRIAD device :NC_ERROR" but maybe you got past that problem. If you look at the&amp;nbsp;&lt;A href="http://docs.openvinotoolkit.org/latest/_demos_python_demos_object_detection_demo_ssd_async_README.html"&gt;Python Object Detection SSD Async Doc&lt;/A&gt;&amp;nbsp;as long as the model is of SSD type, it should work fine. Since you are using one of our standard Python samples, my guess is that you are not using the correct model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 20:19:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135166#M9449</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-09T20:19:49Z</dc:date>
    </item>
    <item>
      <title>I never talked about "Cannot</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135167#M9450</link>
      <description>&lt;P&gt;I never talked about&amp;nbsp;"Cannot Init MYRIAD device :NC_ERROR". You saw that error in my photo, but it was an old error....&lt;/P&gt;&lt;P&gt;Anyway, some suggestions about the model?&lt;/P&gt;&lt;P&gt;I have my custom model that works, do the inference, but it seems to be bad for the code.&lt;/P&gt;&lt;P&gt;From this:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;res = exec_net.requests[cur_request_id].outputs[out_blob]
            for obj in res[0][0]:
                # Draw only objects when probability more than specified threshold
                if obj[2] &amp;gt; args.prob_threshold:
                    xmin = int(obj[3] * initial_w)
                    ymin = int(obj[4] * initial_h)
                    xmax = int(obj[5] * initial_w)
                    ymax = int(obj[6] * initial_h)
                    class_id = int(obj[1])
                    # Draw box and label\class_id
                    color = (min(class_id * 12.5, 255), min(class_id * 7, 255), min(class_id * 5, 255))
                    cv2.rectangle(frame, (xmin, ymin), (xmax, ymax), color, 2)
                    det_label = labels_map[class_id] if labels_map else str(class_id)
                    cv2.putText(frame, det_label + ' ' + str(round(obj[2] * 100, 1)) + ' %', (xmin, ymin - 7),
                                cv2.FONT_HERSHEY_COMPLEX, 0.6, color, 1)&lt;/PRE&gt;

&lt;P&gt;I can't extract the position of the object, because the format of res is different&amp;nbsp;than how the system expects it.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 14:11:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135167#M9450</guid>
      <dc:creator>MCurc</dc:creator>
      <dc:date>2019-08-10T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Dear Curci, Matteo,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135168#M9451</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Curci, Matteo,&lt;/P&gt;&lt;P&gt;The below forum post also pertains to an SSD inference sample. This person was able to fix their problem by studying the SSD sample within the OpenVino package. Hopefully it can help you also.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/computer-vision/topic/815742"&gt;https://software.intel.com/en-us/forums/computer-vision/topic/815742&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also I don't understand your question :&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I can't extract the position of the object, because the format of res is different&amp;nbsp;than how the system expects it.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shubha&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 16:55:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135168#M9451</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-08-13T16:55:32Z</dc:date>
    </item>
    <item>
      <title>I'll take a look to the</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135169#M9452</link>
      <description>&lt;P&gt;I'll take a look to the example, but I don't know it it can help me..&lt;/P&gt;&lt;P&gt;About the second question.&lt;/P&gt;&lt;P&gt;The res object, the output of:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;exec_net.requests[cur_request_id].outputs[out_blob]&lt;/PRE&gt;

&lt;P&gt;command, should contain the result of prediction, correct? It should contain also the position, in terms of coordinates, of the detected object. Correct?If yes, how can I extract the position information if my res object has another form ((1,&amp;nbsp;38))?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 17:36:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-inference-engine-python/m-p/1135169#M9452</guid>
      <dc:creator>MCurc</dc:creator>
      <dc:date>2019-08-13T17:36:48Z</dc:date>
    </item>
  </channel>
</rss>

