<?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 Re: How to do async or sync openvino object detection and evaluation with GUI (Without loop)? in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248720#M22480</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you very much for your response. I will try and let you know about &amp;nbsp;the results.&lt;/P&gt;
&lt;P&gt;Have nice week.&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;Emre&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 20:25:28 GMT</pubDate>
    <dc:creator>emregun</dc:creator>
    <dc:date>2021-01-21T20:25:28Z</dc:date>
    <item>
      <title>How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1246913#M22384</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1.Project Summary:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want to optimise my Tensorflow trained&amp;nbsp;faster_rcnn_inception_v2_coco model object detection project with openvino toolkit. My model works totally fine with following samples: object_detection_demo_ssd_async and object_detection_sample_ssd.&lt;/P&gt;
&lt;P&gt;In my project, I have a folder with photos and &amp;nbsp;do object detection (2 fps) on these photos which can be started and stopped via GUI.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.Problem:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I could not&amp;nbsp;achieve&amp;nbsp;to integrate openvino into a system with GUI (without loop since &amp;nbsp;GUI is incompatible with loop.)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3.What I tried before:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;3.1Thread:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3.1.1.Pseudo Code:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;-Configure GUI&lt;BR /&gt;-Configure Object detection and openvino &amp;nbsp;&lt;BR /&gt;-Start_thread_with_openvino_object_detection_and_evaluation &amp;nbsp; (which includes a function with a loop for openvino object detection and evaluation(similar like object_detection_demo_ssd_async, but everything is done in a loop))&lt;BR /&gt;-Start_GUI&lt;EM&gt;&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;3.1.2.Thread Problem:&lt;/STRONG&gt;&lt;/EM&gt; &lt;BR /&gt;Code works fine, it is possible to start and stop in gui, but after a couple of &amp;nbsp; minutes, object detection getting slower (Slow down From 1 fps to 15 fps). I had also the same problem with Tensorflow(without Openvino) I guess the problem is that threads are not capable to work in parallel in python, so after a while the processor cannot manage the GUI and object detection together, so it &amp;nbsp;slows down.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;3.2. Multiprocessing solution 1(This solution works fine with Tensorflow without openvino):&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;3.2.1.Pseudo Code:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;The same pseudo code as thread, but instead of thread, function with object detection and evaluation loop is called from multiprocessing&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;3.2.2.Multiprocessing solution 1 Problem: &amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;After following method in the loop,&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;exec_net.start_async(&lt;SPAN&gt;request_id&lt;/SPAN&gt;=next_request_id, &lt;SPAN&gt;inputs&lt;/SPAN&gt;=data)&lt;BR /&gt;&lt;EM&gt;it is not possible to call following method(or any method which comes from&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;exec_net object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;SPAN style="font-family: inherit;"&gt;exec_net.requests[cur_request_id].wait(-&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;) == &lt;/SPAN&gt;&lt;FONT face="inherit"&gt;0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;The code freezes, if any method from&amp;nbsp;exec_net ist called after exec_net.start_async(Although the loop works totally fine if it is not called via multiprocessing). My&amp;nbsp;&lt;/FONT&gt;assumption&lt;FONT face="inherit"&gt;&amp;nbsp;is that the detection cannot be finished in the process, so therefore the&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="inherit"&gt;exec_net is busy all the time. Therefore&amp;nbsp;&lt;/FONT&gt;I&lt;FONT face="inherit"&gt;&amp;nbsp;tried the second&amp;nbsp;&lt;/FONT&gt;multiprocessing solution below calling object detection and evaluation in separate processes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;3.3.Multiprocessing solution 2:&lt;/EM&gt;&amp;nbsp;(Separate multiprocess call for object detection and evaluation)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;3.3.1.Pseudo Code:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;-Configure GUI&lt;BR /&gt;-Configure Object detection and openvino &amp;nbsp;&lt;BR /&gt;-Start_timer1(which calls every sec a new multiprocessing for a single object detection(exec_net.start_async)&amp;nbsp;&lt;BR /&gt;-start_timer2(which calls every sec a new multiprocessing for a single detection evaluation(&lt;SPAN&gt;for &lt;/SPAN&gt;obj &lt;SPAN&gt;in &lt;/SPAN&gt;output_postprocessor(exec_net.requests[cur_request_id].output_blobs))&lt;BR /&gt;-Start GUI&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;3.3.2.Multiprocessing solution 2 Problem: &amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;It is not possible to share so complex&amp;nbsp;objects(exec_net) between processes (from&amp;nbsp;object detection process to evaluation process) in python. I also tried to use evaluation methods directly in main function(Instead of start_timer2) but I could also not achieve to share&amp;nbsp;complex&amp;nbsp;objects(exec_net) to main function from the first object detection process.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4.Environment:&lt;BR /&gt;&lt;/STRONG&gt;OS:macOS Catalina&lt;BR /&gt;Processor:1,6 GHz Dual-Core Intel Core i5&lt;BR /&gt;Programming Language:Python&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Model:&amp;nbsp;Tensorflow trained&amp;nbsp;faster_rcnn_inception_v2_coco&lt;BR /&gt;Samples:&amp;nbsp;object_detection_demo_ssd_async and object_detection_sample_ssd&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the description above is not too complex. If you need the exact code examples instead of&amp;nbsp;&lt;EM&gt;Pseudo Code, I am ready to share them.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much in advance.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 13:18:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1246913#M22384</guid>
      <dc:creator>emregun</dc:creator>
      <dc:date>2021-01-16T13:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1247879#M22428</link>
      <description>&lt;P&gt;Correction:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;3.1.2.Thread Problem:&lt;/STRONG&gt;&lt;/EM&gt; &lt;BR /&gt;&lt;SPAN&gt;Slow down From 1 fps to 15 fps-&amp;gt;Slow down almost 15x times&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:28:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1247879#M22428</guid>
      <dc:creator>emregun</dc:creator>
      <dc:date>2021-01-19T21:28:26Z</dc:date>
    </item>
    <item>
      <title>Re:How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1247989#M22431</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Before proceeding further, I need to confirm which GUI are you using for development? Is it GUI for C++ like Qt?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; or probably webservice GUI like I did here (it's for Python but the concept should be the same): &lt;A href="https://github.com/SNNJM/People_Counter" target="_blank"&gt;https://github.com/SNNJM/People_Counter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Iffa&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jan 2021 04:05:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1247989#M22431</guid>
      <dc:creator>Iffa_Intel</dc:creator>
      <dc:date>2021-01-20T04:05:55Z</dc:date>
    </item>
    <item>
      <title>Re:How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1247991#M22432</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Before proceeding further, I need to confirm which GUI are you using for development? Is it GUI for C++ like Qt?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;or probably webservice GUI like I did here (it's for Python but the concept should be the same): &lt;A href="https://github.com/SNNJM/People_Counter" target="_blank"&gt;https://github.com/SNNJM/People_Counter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Iffa&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jan 2021 04:06:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1247991#M22432</guid>
      <dc:creator>Iffa_Intel</dc:creator>
      <dc:date>2021-01-20T04:06:31Z</dc:date>
    </item>
    <item>
      <title>How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248316#M22449</link>
      <description>&lt;P&gt;Hi Iffa_Intel,&lt;/P&gt;
&lt;P&gt;Thanks a lot for your response. I have a python based&amp;nbsp;PyQt5&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;GUI, which will be running on macOS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Emre&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 22:49:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248316#M22449</guid>
      <dc:creator>emregun</dc:creator>
      <dc:date>2021-01-20T22:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248456#M22460</link>
      <description>&lt;P&gt;In that case, you might want to refer here: &lt;A href="https://github.com/itlab-vision/openvino-smart-library" target="_blank" rel="noopener"&gt;https://github.com/itlab-vision/openvino-smart-library&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and see how you can integrate OpenVINO and PyQT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is our official documentation on how to&amp;nbsp;&lt;A href="https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_Integrate_with_customer_application_new_API.html" target="_blank"&gt;Integrate the Inference Engine with Your Application&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's general but perhaps it could help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Iffa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 07:22:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248456#M22460</guid>
      <dc:creator>Iffa_Intel</dc:creator>
      <dc:date>2021-01-21T07:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248720#M22480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you very much for your response. I will try and let you know about &amp;nbsp;the results.&lt;/P&gt;
&lt;P&gt;Have nice week.&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;Emre&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 20:25:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248720#M22480</guid>
      <dc:creator>emregun</dc:creator>
      <dc:date>2021-01-21T20:25:28Z</dc:date>
    </item>
    <item>
      <title>Re:How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248844#M22487</link>
      <description>&lt;P&gt;Noted.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Iffa&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Jan 2021 05:05:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1248844#M22487</guid>
      <dc:creator>Iffa_Intel</dc:creator>
      <dc:date>2021-01-22T05:05:46Z</dc:date>
    </item>
    <item>
      <title>Re:How to do async or sync openvino object detection and evaluation with GUI (Without loop)?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1251167#M22603</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Intel will no longer monitor this thread since we have provided a solution.&amp;nbsp;If you need any additional information from Intel, please submit a new question.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Iffa&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jan 2021 04:17:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-to-do-async-or-sync-openvino-object-detection-and-evaluation/m-p/1251167#M22603</guid>
      <dc:creator>Iffa_Intel</dc:creator>
      <dc:date>2021-01-29T04:17:38Z</dc:date>
    </item>
  </channel>
</rss>

