Hi,
I am trying to run some code to perform a median blur. When I run:
differenceImage = cv2.medianBlur(differenceImage,17)
I get an error:
OpenCV Error: Assertion failed (src.depth() == CV_8U && (cn == 1 || cn == 3 || cn == 4)) in medianBlur, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/smooth.cpp, line 3552
Traceback (most recent call last):
File "medianBlur.py", line 78, in <module>
differenceImage = cv2.medianBlur(differenceImage,17)
cv2.error: /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/smooth.cpp:3552: error: (-215) src.depth() == CV_8U && (cn == 1 || cn == 3 || cn == 4) in function medianBlur
Does anyone know what this means?
Many thanks,
Sam