Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Corcoran__Daniel
Beginner
99 Views

openVINO Raspbian Buster - cannot import cv2

Hello,

I have been configuring openVINO on my Raspberry pi 2 B, and followed these instructions.

I was successfully able to run the "object_detection_sample_ssd" demonstration, but that is where my luck ended with the tutorial. I tried to run the openCV test, and it didn't work. Here's what I have gathered so far. 

pi@raspberrypi:~/build $ python3
Python 3.7.3 (default, Apr  3 2019, 05:39:12) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'
>>> 
[1]+  Stopped                 python3

 

Here's my PYTHONPATH

pi@raspberrypi:~/build $ echo $PYTHONPATH
/opt/intel/openvino//python/python3.7:/opt/intel/openvino//deployment_tools/model_optimizer:

Let me know what other information I can provide.

Daniel

 

 

 

0 Kudos
1 Reply
Maksim_S_Intel
Employee
99 Views

Try to append /opt/intel/openvino/python/python3 to PYTHONPATH:

export PYTHONPATH=/opt/intel/openvino/python/python3:$PYTHONPATH

This could be a problem of setupvars.sh script. Do you use 2019R1 or 2019R2?