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.

opencv in openvino and my own opencv

es__we
Beginner
457 Views
I have a question: Can I install my own opencv if I have installed openvino? And if I don't activate the openvino environment and import cv2 in a python script, will it use the opencv that installed myself? Or I needn't install opencv any more if I have installed openvino? Thanks.
0 Kudos
3 Replies
Maksim_S_Intel
Employee
457 Views

Yes, you can install another OpenCV along with OpenVINO. The one from OpenVINO will not be used if you do not activate OpenVINO environment. setupvars.sh script just sets OpenCV_DIR, PATH, LD_LIBRARY_PATH and PYTHONPATH environment variables.

To check which OpenCV version have been loaded in Python, add following commands to your script:

print(cv2.__version__)
print(cv2.__file__)

 

illAdvised
Beginner
350 Views

I didn't run the setupvars.bat file because I also wanted my own version of opencv for my program. However, I now get the following error when trying to import inference_engine:

from .ie_api import *
ImportError: DLL load failed: The specified module could not be found.

 

If this post is still open, any help would be appreciated!

illAdvised
Beginner
345 Views

Never mind, I was able to edit the batch file in a way that corrected my issue

Reply