Imreads displays is blank for .jpg

asked 2018-12-09 18:57:57 -0500

MVisCool gravatar image

running python 3.7.1 using anaconda cv 3.4.2 running under windows 7 I have the attached jpg C:\fakepath\flower.jpg

My first program in cv2 is to just read and image and display it. import cv2 image = cv2.imread('flower.jpg') cv2.imshow('image_flower',image) The display hangs comes up but hangs. there are no error messages. I can work with the same image using PIL. Please advise.

edit retag flag offensive close merge delete



add cv2.waitKey()

sturkmen gravatar imagesturkmen ( 2018-12-09 23:08:34 -0500 )edit