Ask Your Question
0

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

asked 2016-12-28 13:48:58 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-12-28 17:08:47 -0500

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-12-28 13:48:58 -0500

Seen: 2,346 times

Last updated: Dec 28 '16