I have used openCV python and encountered an error.
img_blur = cv2.medianBlur(self.cropped_img,5) img_thresh_Gaussian = cv2.adaptiveThreshold(img_blur, 255,
you should load your file like this
src.create(rows, cols, CV_8UC1); src = imread(your-file, CV_8UC1);
and after that
adaptiveThreshold(src, dst, 255, ADAPTIVE_THRESH_GAUSSIAN_C, THRESH_BINARY, 75, 10);