OpenCV

Hi,

I’m new to python and scripting in blender in general :). I would like to use OpenCV from blender. So I downloaded, build and installed OpenCV on my machine (ubuntu 64bit). When I try “import cv2” from python3 in the terminal, everything works fine and I can work with OpenCV without problems. However when trying the same from blender I get: ImportError: No module named ‘cv2’.

How can I make the cv2 module available from my blender python environment?

Any help would be appreciated.

Rgds, daar

python on your os and python of blender are not the same. So the blender’s python don’t find the module cv2.
What you can do is :
With your os’ python, type, import cv2; cv2; and retrieve the path of where the module is installed.

Then in blender, import sys; sys.path.append(the_path_of_the_module). And then you can import cv2