First time here? Check out the FAQ!

Ask Your Question
0

When I use 'cv2.imread()' the image window show not responding.Can somebody help me with this?

asked Dec 28 '16

Frajo Mathews gravatar image

I am using opencv 2.7When I use 'cv2.imshow('image',img)' the image window shows not responding.I waited for some long,but still not respondiing.Somebody please help me.Thankyou.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Dec 28 '16

Tetragramm gravatar image

Do you then call cv2.waitKey()? The windows appears when you do imshow, but unless you do waitKey, it doesn't display properly and the program continues.

The parameter for waitKey is how long to wait in milliseconds, 0 or no parameter is until a button is pressed with the window in focus.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Dec 28 '16

Seen: 6,253 times

Last updated: Dec 28 '16