1

My cv2.imshow() function doesn't work. All it displays is the window bar and nothing else.

Unresponsive window

And here's my code (As you can see, I've added cv2.waitkey()):

Code

Dan Mašek
  • 17,852
  • 6
  • 57
  • 85
MM3
  • 87
  • 1
  • 9
  • 1
    Known bug, see the duplicate question. – Dan Mašek Jun 29 '17 at 22:51
  • BTW, it's preferred to show your code as text (there's special markup for that), rather than as images -- it's a lot easier to paste that into an editor when someone wants to try it ;) | And even though this is a duplicate, I'll give you a +1 for that `waitKey` bit ;) – Dan Mašek Jun 29 '17 at 22:56
  • If you installed OpenCV through the `pip` package `opencv-python`, then the GUI components won't work---did you compile from source? If so then the duplicate stands. @DanMašek is this bug reported on GitHub? – alkasm Jun 29 '17 at 23:19
  • 1
    @AlexanderReynolds This AFAICT: https://github.com/opencv/opencv/issues/8885 | This OSX issue with only the title bar of the window showing has been appearing here quite frequently lately. | If compiled without GUI support, you wouldn't even see that title bar. – Dan Mašek Jun 29 '17 at 23:26
  • @DanMašek I followed the instructions and it worked for me. Thank you so much!! – MM3 Jun 30 '17 at 14:29

0 Answers0