<?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 Hello, in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148667#M11945</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you please share exact steps of setting paths.&lt;/P&gt;&lt;P&gt;I have done installation of CMAKE, OPENCV with CONTRIB, and DLDT.&lt;/P&gt;&lt;P&gt;Still not able to use the trackers.&lt;/P&gt;&lt;P&gt;Can you share your setupvars file with the changes highlighted? Did you also change /opencv/setupvars.sh?&lt;/P&gt;&lt;P&gt;Also while compiling DLDT - the openCV_DIR is the run time directory or OpenCV? or the directory with Include/opencv4/opencv2?&lt;/P&gt;&lt;P&gt;Please assist&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 May 2020 08:19:13 GMT</pubDate>
    <dc:creator>gupta__himant</dc:creator>
    <dc:date>2020-05-30T08:19:13Z</dc:date>
    <item>
      <title>OpenVino - Implementing trackers from OpenCV_Contrib</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148654#M11932</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm utilising OpenVino on a Raspberry Pi 3B with the Intel Neural Compute Stick 2 (NCS2) to detect and track objects from a camera feed.&lt;/P&gt;&lt;P&gt;So far I've managed to successfully implement the detection algorithm (TinyYOLO) with the NCS2 and now I want to implement the trackers. However OpenVino doesn't include the extra modules in OpenCV_Contrib for tracking.&lt;/P&gt;&lt;P&gt;I've tried compiling OpenCV4 from source with the extra modules and the inference engine for the NCS2 but I get a generic segmentation fault error when I run my script.&lt;/P&gt;&lt;P&gt;As this dead end took several days I wanted to ask if there's another way of getting these tracking modules in OpenVino. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:30:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148654#M11932</guid>
      <dc:creator>Tipan__Steven</dc:creator>
      <dc:date>2019-02-07T18:30:15Z</dc:date>
    </item>
    <item>
      <title>Hi Steven:</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148655#M11933</link>
      <description>&lt;P&gt;Hi Steven:&lt;/P&gt;&lt;P&gt;The version of OpenVino is pointed to by environment variables in the bin/setupvars.bat. For Ubuntu, of course it would be a *.sh file. You should be able to point these environment variables to a different version of OpenCV which contains the trackers you require.&amp;nbsp; Is this the method that you tried ? If not, can you tell me exactly the steps which you took&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 20:34:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148655#M11933</guid>
      <dc:creator>Shubha_R_Intel</dc:creator>
      <dc:date>2019-02-08T20:34:41Z</dc:date>
    </item>
    <item>
      <title>Hi, </title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148656#M11934</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;Raspbian Stretch. First I compiled from source Open CV 4.0.0&amp;nbsp;with the extra modules. Next, I downloaded &amp;nbsp;The Intel Distribution of OpenVINO toolkit for Raspbian OS and changed&amp;nbsp;&amp;nbsp;inference_engine_vpu_arm/bin/setupvars.sh file.&amp;nbsp;Since, I had my own version of OpenCV I changed the following part:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;if [ -e "$INSTALLDIR/opencv" ]; then
if [ -f "$INSTALLDIR/opencv/setupvars.sh" ]; then
    source "$INSTALLDIR/opencv/setupvars.sh"
else
    export OpenCV_DIR="$INSTALLDIR/opencv/share/OpenCV"
    export LD_LIBRARY_PATH="$INSTALLDIR/opencv/lib:$LD_LIBRARY_PATH"
    export LD_LIBRARY_PATH="$INSTALLDIR/opencv/share/OpenCV/3rdparty/lib:$LD_LIBRARY_PATH"

to 

if [ -e "$INSTALLDIR/opencv" ]; then
if [ -f "$INSTALLDIR/opencv/setupvars.sh" ]; then
    source "$INSTALLDIR/opencv/setupvars.sh"
else
   &lt;STRONG&gt; export LD_LIBRARY_PATH="/opt/opencv-4.0.0/lib:$LD_LIBRARY_PATH"&lt;/STRONG&gt;
   &lt;/PRE&gt;

&lt;P&gt;With that I tried to point it&amp;nbsp;&amp;nbsp;to my OpenCV installation, additionally&amp;nbsp;&amp;nbsp;I deleted the OpenCV included in the toolkit. Finally, I applied the changes and used the command source to make them effective ( &lt;EM&gt;source&amp;nbsp;inference_engine_vpu_arm/bin/setupvars.sh&lt;/EM&gt;). When trying to import opencv in python I got the following error:&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;ImportError /home/pi/inference_engine_vpu_arm/python/python3.5/cv2.cypthon-35m-arm-linux-gnueabihf.so:
 undefined symbol: _ZTIN2cv3dnn14dnn4_v201812055LayerE&lt;/PRE&gt;

&lt;P&gt;I also tried to compile OPENCV 4.0.1 with the extra modules and inference engine in order to not use the OpenVino toolkit. But by doing that I get "segmentation fault error" when I run my script.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 21:57:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148656#M11934</guid>
      <dc:creator>Tipan__Steven</dc:creator>
      <dc:date>2019-02-09T21:57:27Z</dc:date>
    </item>
    <item>
      <title>Hi, Steven! I'd like to ask</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148657#M11935</link>
      <description>&lt;P&gt;Hi, Steven! I'd like to ask you to try this guide with X-compilation of OpenCV for Raspbian:&amp;nbsp;https://github.com/opencv/opencv/wiki/Intel%27s-Deep-Learning-Inference-Engine-backend#raspbian-stretch&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 19:14:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148657#M11935</guid>
      <dc:creator>Dmitry_K_Intel3</dc:creator>
      <dc:date>2019-02-13T19:14:52Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148658#M11936</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have the same problem of Steven. i want to install opencv_contrib to use trackers.&lt;/P&gt;&lt;P&gt;How can I change the opencv path that openvino create on installation and use my custom opencv version?&lt;BR /&gt;Is it possible to avoid that openvino installs opencv?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 10:47:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148658#M11936</guid>
      <dc:creator>Pozzetti__Andrea</dc:creator>
      <dc:date>2019-02-15T10:47:38Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148659#M11937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First thanks for your suggestion, I was able to make opencv_contrib work with openvino following that link. I faced some problems with some libraries since I needed it to work with Python 3.5 and the link gives information only for Python 2.7. For now, everything is working.&lt;/P&gt;&lt;P&gt;And Andrea, I followed the steps in the previous link (All this is for Raspberry PI):&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Cross-compile OpenCV with Opencv_Contrib and Inference Engine (I've got those files in case you need them, I could email you).&lt;/P&gt;&lt;P&gt;2. Install OpenVino for Raspberry pi, following the instructions provided by Intel.&lt;/P&gt;&lt;P&gt;3. Add to Path the libraries needed of OpenCV.&lt;/P&gt;&lt;P&gt;That worked for me, if you need more information just let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:40:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148659#M11937</guid>
      <dc:creator>Tipan__Steven</dc:creator>
      <dc:date>2019-02-19T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Hi Steven,thanks for your</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148660#M11938</link>
      <description>&lt;P&gt;Hi Steven,&lt;BR /&gt;thanks&amp;nbsp;for your help.&lt;BR /&gt;If you could send me the compiled file it would be great!! You can send them to dev(AT)fluxedo.com&lt;/P&gt;&lt;P&gt;Can you also explain in details step 3?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:01:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148660#M11938</guid>
      <dc:creator>Pozzetti__Andrea</dc:creator>
      <dc:date>2019-02-20T13:01:17Z</dc:date>
    </item>
    <item>
      <title>I'm trying to compile opencv</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148661#M11939</link>
      <description>&lt;P&gt;I'm trying to compile opencv and opencv_contrib with python3.5 but unsuccessful.&lt;BR /&gt;"OpenVino" is missing when i try to use it in my script.&lt;BR /&gt;This is the CMAKE configuration that i used.&lt;BR /&gt;Which is the error?&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;cmake -D CMAKE_BUILD_TYPE=RELEASE \
     -D CMAKE_INSTALL_PREFIX=/opt/opencv-4.0.1 \
     -D OPENCV_EXTRA_MODULES_PATH=~/opencv_all/opencv_contrib-4.0.1/modules \
     -D OPENCV_ENABLE_NONFREE=ON \
     -D PYTHON2_INCLUDE_PATH=/usr/include/python2.7 \
     -D PYTHON2_LIBRARIES=/usr/lib/arm-linux-gnueabihf/libpython2.7.so \
     -D PYTHON2_NUMPY_INCLUDE_DIRS=/usr/lib/python2/dist-packages/numpy/core/include \
     -D PYTHON3_INCLUDE_PATH=/usr/include/python3.5m \
     -D PYTHON3_LIBRARIES=/usr/lib/arm-linux-gnueabihf/libpython3.5m.so \
     -D PYTHON3_NUMPY_INCLUDE_DIRS=/usr/lib/python3/dist-packages/numpy/core/include \
     -D BUILD_OPENCV_PYTHON2=ON \
     -D BUILD_OPENCV_PYTHON3=ON \
     -D ENABLE_NEON=ON \
     -D ENABLE_VFPV3=ON \
     -D WITH_INF_ENGINE=ON \
     -D INF_ENGINE_LIB_DIRS="/root/inference_engine_vpu_arm/deployment_tools/inference_engine/lib/raspbian_9/armv7l" \
     -D INF_ENGINE_INCLUDE_DIRS="/root/inference_engine_vpu_arm/deployment_tools/inference_engine/include" \
     -D CMAKE_FIND_ROOT_PATH="/root/inference_engine_vpu_arm/inference_engine_vpu_arm/" \
     -D WIDTH_GTK=ON \
     -D BUILD_TESTS=OFF \
     -D BUILD_DOCS=OFF \
     -D BUILD_EXAMPLES=OFF ..&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 18:42:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148661#M11939</guid>
      <dc:creator>Pozzetti__Andrea</dc:creator>
      <dc:date>2019-02-25T18:42:59Z</dc:date>
    </item>
    <item>
      <title>@Pozzetti, Andrea</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148662#M11940</link>
      <description>&lt;P&gt;@Pozzetti, Andrea&lt;/P&gt;&lt;P&gt;As I checked, if you run OpenVino's setupvars.sh script before compiling opencv, you do not need to set&lt;/P&gt;&lt;P&gt;-D INF_ENGINE_LIB_DIRS=....&lt;BR /&gt;-D INF_ENGINE_INCLUDE_DIRS=....&lt;/P&gt;&lt;P&gt;inference engine is automatically detected then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 13:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148662#M11940</guid>
      <dc:creator>hamze60</dc:creator>
      <dc:date>2019-03-20T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Hello @Tipan, Steven</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148663#M11941</link>
      <description>&lt;P&gt;Hello @Tipan, Steven&lt;/P&gt;&lt;P&gt;I appreciate it if you can write the variables you set in step 3.&amp;nbsp; paths on cross-compile links are not valid, at least for opencv4.0.1. I tried some other variables, but not successful. when I do my own way to connect my installed opencv to openvino, it is detected and I can use trackers, but when I use NCS2, I get "segmentation fault".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 10:58:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148663#M11941</guid>
      <dc:creator>hamze60</dc:creator>
      <dc:date>2019-03-22T10:58:20Z</dc:date>
    </item>
    <item>
      <title>Hi Steven, </title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148664#M11942</link>
      <description>&lt;P&gt;Hi Steven,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was tried to configure and follow the link but some packages cannot be installed in my raspbian version. What steps did you follow to succeed? Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 19:02:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148664#M11942</guid>
      <dc:creator>Castro__Renato</dc:creator>
      <dc:date>2019-04-22T19:02:48Z</dc:date>
    </item>
    <item>
      <title>Dear all,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148665#M11943</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I recently checked again with OpenCV4.1.0 and OpenVino 2019R1 on an ARM board (not exactly Raspberry pi). Even without cross-compile, It worked easily. The only thing I added after compiling my own OpenCV from source, to find tracker functions was running this:&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #after compile opencv from source, libraries go into /usr/local/lib&lt;BR /&gt;export PYTHONPATH=/usr/local/lib/python3.5/dist-packages/:$PYTHONPATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 10:59:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148665#M11943</guid>
      <dc:creator>hamze60</dc:creator>
      <dc:date>2019-05-24T10:59:00Z</dc:date>
    </item>
    <item>
      <title>Quote:ahangari, hamzeh wrote:</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148666#M11944</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;ahangari, hamzeh wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What were the steps exactly , did you install openvino first or opencv first beacuse i tried it a couple of times but i still can not get the extra libraries like tracking&lt;/P&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I recently checked again with OpenCV4.1.0 and OpenVino 2019R1 on an ARM board (not exactly Raspberry pi). Even without cross-compile, It worked easily. The only thing I added after compiling my own OpenCV from source, to find tracker functions was running this:&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #after compile opencv from source, libraries go into /usr/local/lib&lt;BR /&gt;export PYTHONPATH=/usr/local/lib/python3.5/dist-packages/:$PYTHONPATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 14:35:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148666#M11944</guid>
      <dc:creator>karanda__marijiani</dc:creator>
      <dc:date>2019-05-30T14:35:57Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148667#M11945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you please share exact steps of setting paths.&lt;/P&gt;&lt;P&gt;I have done installation of CMAKE, OPENCV with CONTRIB, and DLDT.&lt;/P&gt;&lt;P&gt;Still not able to use the trackers.&lt;/P&gt;&lt;P&gt;Can you share your setupvars file with the changes highlighted? Did you also change /opencv/setupvars.sh?&lt;/P&gt;&lt;P&gt;Also while compiling DLDT - the openCV_DIR is the run time directory or OpenCV? or the directory with Include/opencv4/opencv2?&lt;/P&gt;&lt;P&gt;Please assist&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 08:19:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1148667#M11945</guid>
      <dc:creator>gupta__himant</dc:creator>
      <dc:date>2020-05-30T08:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1224568#M21287</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/98950"&gt;@Tipan__Steven&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I am facing the same issue as you did with OpenCV contrib for OpenVINO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you could please share our cross-compile files for OpenCV and OpenCV_contrib and inference engine. Also, if you could please assist as to how to add to path the libraries for OpenCV.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 05:17:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1224568#M21287</guid>
      <dc:creator>ananya_nrt</dc:creator>
      <dc:date>2020-11-02T05:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVino - Implementing trackers from OpenCV_Contrib</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1447585#M28906</link>
      <description>&lt;P&gt;This is an old thread, but is there a definitive set of instructions to implement OpenCV trackers with OpenVINO and the now-obsolete NCS2 on a RPi 4b - Buster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding that the last OpenVINO to support the NCS2 was v2020.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attempted to cross-compile using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/opencv/opencv/wiki/Intel-OpenVINO-backend#raspbian-buster" target="_blank"&gt;https://github.com/opencv/opencv/wiki/Intel-OpenVINO-backend#raspbian-buster&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After installing opencv/opencv-contrib 4.5.5 from source:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ python3&lt;/P&gt;
&lt;P&gt;Python 3.7.3 (default, Oct 31 2022, 14:04:00) &lt;BR /&gt;[GCC 8.3.0] on linux&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import cv2&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; cv2.__version__&lt;BR /&gt;'4.5.5'&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; tracker = cv2.TrackerCSRT_create()&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;However, in a test.py script I have:&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;import cv2&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;net&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;cv2&lt;/SPAN&gt;&lt;SPAN&gt;.dnn.readNetFromCaffe(&lt;/SPAN&gt;&lt;SPAN&gt;_weights&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;_model&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;net&lt;/SPAN&gt;&lt;SPAN&gt;.setPreferableTarget(&lt;/SPAN&gt;&lt;SPAN&gt;cv2&lt;/SPAN&gt;&lt;SPAN&gt;.dnn.DNN_TARGET_MYRIAD)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;detections&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;net&lt;/SPAN&gt;&lt;SPAN&gt;.forward()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I get the&amp;nbsp;&lt;/SPAN&gt;error relating to DNN_TARGET_MYRIAD:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;cv2.error: OpenCV(4.5.5) /home/pi/opencv/modules/dnn/src/dnn.cpp:1414: error: (-215:Assertion failed) preferableBackend != DNN_BACKEND_OPENCV || preferableTarget == DNN_TARGET_CPU || preferableTarget == DNN_TARGET_OPENCL || preferableTarget == DNN_TARGET_OPENCL_FP16 in function 'setUpNet'&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then used this to install OpenVINO:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_raspbian.html" target="_blank"&gt;https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_raspbian.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but using this version of OpenVINO (as the last to support the NCS2):&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/l_openvino_toolkit_runtime_raspbian_p_2020.3.194.tgz" target="_blank"&gt;https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/l_openvino_toolkit_runtime_raspbian_p_2020.3.194.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I exported the paths to the new post cross-compiled opencv_install directory:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ export PYTHONPATH=/home/pi/Desktop/opencv_install/lib/python2.7/dist-packages/:$PYTHONPATH&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ export PYTHONPATH=/home/pi/Desktop/opencv_install/lib/python3.7/site-packages/:$PYTHONPATH&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ export LD_LIBRARY_PATH=/home/pi/Desktop/opencv_install/lib/:$LD_LIBRARY_PATH&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I set up the NCS2 with no errors :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ sudo usermod -a -G users "$(whoami)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ sh /opt/intel/openvino_2020.3/install_dependencies/install_NCS_udev_rules.sh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ source /opt/intel/openvino_2020.3/bin/setupvars.sh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and then checked:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ python3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Python 3.7.3 (default, Oct 31 2022, 14:04:00) &lt;BR /&gt;[GCC 8.3.0] on linux&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import cv2&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; cv2.__version__&lt;BR /&gt;'4.3.0-openvino-2020.3.0'&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;tracker = cv2.TrackerCSRT_create()&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;AttributeError: module 'cv2' has no attribute 'TrackerCSRT_create'&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I open a new&amp;nbsp;terminal and $&amp;nbsp;source /opt/intel/openvino_2020.3/bin/setupvars.sh&lt;BR style="font-weight: 400;" /&gt;&lt;BR style="font-weight: 400;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then run a test.py script:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;import cv2&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;net&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;cv2&lt;/SPAN&gt;&lt;SPAN&gt;.dnn.readNetFromCaffe(&lt;/SPAN&gt;&lt;SPAN&gt;_weights&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;_model&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;net&lt;/SPAN&gt;&lt;SPAN&gt;.setPreferableTarget(&lt;/SPAN&gt;&lt;SPAN&gt;cv2&lt;/SPAN&gt;&lt;SPAN&gt;.dnn.DNN_TARGET_MYRIAD)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;detections&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;net&lt;/SPAN&gt;&lt;SPAN&gt;.forward()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I get a segmentation fault.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks for any help! I'd like to put this NCS2 to work.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 20:55:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVino-Implementing-trackers-from-OpenCV-Contrib/m-p/1447585#M28906</guid>
      <dc:creator>mjohannessen</dc:creator>
      <dc:date>2023-01-17T20:55:46Z</dc:date>
    </item>
  </channel>
</rss>

