Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

medianBlur from imgproc not working with python bindings?

Hi there, I don't really know if this is the right place to ask since I am using a windows 64 bit beta version of the openCV python bindings but here we go:

When using a numpy array as source I get a type error

----> 1 dest = cv2.medianBlur(src,3)
TypeError: src is not a numpy array

When using a matrix mat created via cv.CreateMat, I get the following weird error

----> 1 dest = cv2.medianBlur(src,3)
error: ..\..\..\OpenCV-2.4.3\modules\imgproc\src\smooth.cpp:1679: error: (-210)

For testing purposes I tried out the cv2.Laplacian which works just fine with 2 matrices created via cv.CreateMat as source and destination.

If anyone could point me in a direction where to search for the error I would be glad!

Environment data: Windows 7 64bit, Python 2.7, OpenCV 2.4.3