Hello,

I correctly installed OpenCV for Photoscan following instructions from:

http://www.agisoft.com/forum/index.php?topic=5435.msg26662#msg26662

https://pypi.python.org/pypi/opencv-python/3.3.0.10

But when I try to run the attached script, I get the following error:

   2018-01-11 10:54:16 Traceback (most recent call last):

   2018-01-11 10:54:16 File "D:/Corriveau/Python/testOpenCV.py", line 14, in

   2018-01-11 10:54:16 gray = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)

   2018-01-11 10:54:16 TypeError: src is not a numpy array, neither a scalar

I cannot find how to access the real pixel array that seems to be hidden behind the src Python object and that OpenCV expects to be a numpy array. I already posted on Photoscan forum and support

https://agisoft.freshdesk.com/support/tickets/12075

http://www.agisoft.com/forum/index.php?topic=8225.0

but as I did not get any response, I'm trying ResearchGate community!

Thanks in advance for any help!

Bruno

More Bruno Martin's questions See All
Similar questions and discussions