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.

Opencv loading from python on Linux

Platter__Paolo
Beginner
428 Views

Hi,

I'm in trouble to load the opencv library you provided with python bindings, only on linux, on windows is working fine.

python

Python 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>import cv2
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: /opt/intel/computer_vision_sdk_2018.2.299/python/python2.7/cv2.so: undefined symbol: _ZTIN2cv3dnn19experimental_dnn_v55LayerE

Any ideas ?

Thanks

0 Kudos
2 Replies
Severine_H_Intel
Employee
428 Views

Hi Paolo, 

I checked your issue and I can not reproduce it on Ubuntu 16.04 LTS with same Python version and same OpenVINO version. Which linux OS are you using? Ubuntu or CentOS? Which version ? You can also look what is inside your Python path:  echo $PYTHONPATH 

Have you installed other libraries that might create conflict in the OpenCV bindings? 

Best, 

Severine

 

0 Kudos
Platter__Paolo
Beginner
428 Views

I'm using Ubuntu 16.04 LTS and OpenVino 2018 R2 Release. 

Here my $PYTHONPATH:

/opt/intel/computer_vision_sdk_2018.2.299/python/python2.7:/opt/intel/computer_vision_sdk_2018.2.299/deployment_tools/model_optimizer:

There aren't libraries in conflicts with OpenCV library in Python2.7.

Thanks

 

 

0 Kudos
Reply