Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
6023 Discussions

Difficulty running OpenVINO python inference example in windows

Brown_Kramer__Joshua
273 Views

I ultimately got this to work, but I hit many stumbling blocks.

I followed this on Windows 10:

https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_windows.html

I can run the demos.  I want to run classification_sample.py.  However, I see this:

https://docs.openvinotoolkit.org/latest/_inference_engine_ie_bridges_python_docs_api_overview.html

Which says I want to run this:

<INSTALL_DIR>\deployment_tools\inference_engine\python_api\setenv.bat

Which doesn't exist (the folder python_api is missing).

According to the following post, that's a documentation error

https://software.intel.com/en-us/forums/intel-distribution-of-openvino-toolkit/topic/810679

And instead, I should run setupvars.bat under  C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\bin .  OK, Done.

The page https://docs.openvinotoolkit.org/latest/_docs_IE_DG_Samples_Overview.html says I should go to <INSTALL_DIR>/deployment_tools/inference_engine/samples/python_samples for the inference sample.  It's actually in <INSTALL_DIR>/deployment_tools/inference_engine/samples/python

No module named 'cv2'

pip install opencv-python

No module named 'openvino'.  D'Oh.  That's what I thought I just installed.

Insight: I've been using powershell.  Just try CMD.  It works!

0 Kudos
1 Reply
Sahira_Intel
Moderator
273 Views

Hi Joshua,

We appreciate your feedback! I have passed this information to the development team to update the documentation. 

Please let me know if you have any questions.

Best Regards,

Sahira 

 

Reply