- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AR92,
To permanently set OpenVINO environment variables on Windows 10, follow this guide:
Best Regards,
Sahira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can always wrap a C++ library and use it in C#.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AR92,
Please see the response above. If you have any questions, please open a new thread.
Thank you!
Sahira
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page