Ask Your Question

kmsquire's profile - activity

2018-11-20 12:54:54 -0600 received badge  Notable Question (source)
2018-11-20 12:54:54 -0600 received badge  Popular Question (source)
2014-11-08 15:32:55 -0600 asked a question cv2.imshow() not functioning properly on Mac

I'm having an issue with cv2.imshow() on a Mac from python. When I run the command, a window opens in the background, and a python rocket icon appears on my dock, bouncing. However the window does not come to the foreground, and is not focusable (and the icon continues to bounce). If I move my mouse cursor over the window, it shows the spinning beach-ball of death.

What's strange is that if I simply "import matplotlib.pyplot", everything starts working. This suggests something isn't being initialized by opencv.

This is occurring with both opencv 2.4.9 and 3.0.0alpha, and occurs with either the QT backend or the normal Mac backend, so it's obviously a problem with my installation. However, I've completely uninstalled and reinstalled everything, and still have the problem. :-(

Not quite sure how to proceed, so any pointers would be very welcome.

2014-03-11 16:10:26 -0600 received badge  Supporter (source)