Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

no module found openvino

AR92
New Contributor I
1,735 Views

Hi i am trying to run object_detection_ssd sample which is working fine but i have to execute setupvars.bat file every time to load environment variables for openvino, is there any way i can pre load these variables with python script.

i also tried something like this example https://stackoverflow.com/questions/5971312/how-to-set-environment-variables-in-python

i have also attached my script

please have  a look

Thanks & Reagrds

Amit

0 Kudos
1 Solution
IntelSupport
Community Manager
1,724 Views

Hi AR92,


Thanks for reaching out. You are correct, the error is due to the environment variables not being set. I am assuming you are using Windows as you referred to the .bat file.


Take a look at the following document to set the OpenVINO Toolkit environment variable permanent.

https://www.intel.com/content/www/us/en/support/articles/000033440/boards-and-kits/neural-compute-sticks.html?productId=125744&localeCode=us_en


If by any chance you are on Linux, simply append the source /opt/intel/openvino/bin/setupvars.sh command in your ~/.bashrc file.


Please let me know if this is answers your question.


Regards,

Jesus


View solution in original post

0 Kudos
5 Replies
IntelSupport
Community Manager
1,725 Views

Hi AR92,


Thanks for reaching out. You are correct, the error is due to the environment variables not being set. I am assuming you are using Windows as you referred to the .bat file.


Take a look at the following document to set the OpenVINO Toolkit environment variable permanent.

https://www.intel.com/content/www/us/en/support/articles/000033440/boards-and-kits/neural-compute-sticks.html?productId=125744&localeCode=us_en


If by any chance you are on Linux, simply append the source /opt/intel/openvino/bin/setupvars.sh command in your ~/.bashrc file.


Please let me know if this is answers your question.


Regards,

Jesus


0 Kudos
AR92
New Contributor I
1,704 Views

hi thanks for your reply,it works now i was also trying yesterday setting variables manually but some reference error, thank for sharing the link.

 

one more thing i need some guidance in, i have a c sharp winform app , can i somehow manage to use c++ sample to create a library for c#, 

 

Regards

Amit   

0 Kudos
samontab
Valued Contributor II
1,699 Views

You can always wrap a C++ library and use it in C#.

Here's some info on how to do such thing

Sahira_Intel
Moderator
1,684 Views

Hi AR92,

Please see the response above. If you have any questions, please open a new thread.

 

Thank you!

Sahira 

Reply