# Revision history [back]

you don't have an image, all you have there is the name of an image. what's missing is:

image = cv.imread(img)  # you have to read it from disc first !

if (image == None):
cv.imshow("img", img)
cv.waitKey()


you don't have an image, all you have there is the name of an image. what's missing is:

image = cv.imread(img) cv.imread(imgpath)  # you have to read it from disc first !

if (image == None):
print(img, print(imgpath, "could not be read!")
cv.imshow("img", img)
cv.imshow("image", image)
cv.waitKey()


you don't have an image, all you have there is the name of an image. what's missing is:

image = cv.imread(imgpath)  # you have to read it from disc first !

if (image == None):