SyntaxFix
Write A Post
Hire A Developer
Questions
First thing you should check is that whether the image exists in the root directory or not. This is mostly due to image with height = 0. Which means that cv2.imread(imageName) is not reading the image.
cv2.imread(imageName)