Answers for "(-215:Assertion failed) image.depth() == CV_8U"

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

Code answers related to "(-215:Assertion failed) image.depth() == CV_8U"

Browse Popular Code Answers by Language