As far as I can see, you are doing it almost good. There is one thing missing:
cv2.imshow('image',img) cv2.waitKey(0)
So probably your window appears but is closed very very fast.
As far as I can see, you are doing it almost good. There is one thing missing:
cv2.imshow('image',img) cv2.waitKey(0)
So probably your window appears but is closed very very fast.