python opencv error depth' is 6 (CV_64F) code example Example: > 'depth' is 6 (CV_64F) import cv2 dilation = cv2.dilate(img,kernel,iterations = 1)