Hi Forum,
I have installed both numpy and opencv-python via pip using
./python3.5 -m pip install numpy
./python3.5 -m pip install opencv-python
from the photoscan-pro/python/bin directory.
From within the Photoscan console I am then able to use numpy via:
>>> import numpy
When trying to do the same for opencv via:
>>> import cv2
this causes Photoscan to close itself and a crash report message to pop up.
From the photoscan-pro/python/bin directory I also accessed python by running:
./python3.5
>>>import numpy #(this works)
>>>import cv2
This produces an error:
File "<stdin>", line 1, in <module>
ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type
So I think that Photoscan is trying to access a different cv2 than the one in its site-packages folder, which is written for python2.7 instead of Photoscan's python3.5?
Is there a way to correct this and let Photoscan use the opencv distribution in it's own folders?
Thank you!