Answers for "error: (-215:Assertion failed) src.type() == CV_8UC1 || src.type() == CV_32FC1 in function 'cornerEigenValsVecs'"

1

(-215:Assertion failed) img.type() == CV_8UC1

# you have to convert image to gray
grayimg = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
Posted by: Guest on June-04-2021
0

(-215:Assertion failed) img.type() == CV_8UC1 in func

img_blur = cv2.medianBlur(self.cropped_img,5).astype('uint8')
img_thresh_Gaussian = cv2.adaptiveThreshold(img_blur, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 11, 2)
Posted by: Guest on June-19-2020

Code answers related to "error: (-215:Assertion failed) src.type() == CV_8UC1 || src.type() == CV_32FC1 in function 'cornerEigenValsVecs'"

Browse Popular Code Answers by Language