Ask Your Question

rjpj98's profile - activity

2017-05-29 03:42:38 -0600 commented question imshow() python only shows titlebar strip

I had tried it and it is/was working.Only imshow doesn't work.I want to look into the code that is inside imshow() function. Boy is this driving me nuts.

2017-05-29 02:05:14 -0600 asked a question imshow() python only shows titlebar strip

I have been itching my head over this question since yesterday. I have tried and tried but to no avail. So here is my code:

import cv2

img = cv2.imread('new.bmp')

cv2.imshow('FRAME', img)

cv2.waitKey(0)

cv2.destroyAllWindows()

From what I have gathered on the internet, this is supposed to display the image 'new.bmp' in a window called'FRAME'. But all that happens is this!. Can anyone help me?

Link to my screenshot: https://i.stack.imgur.com/FsA6a.png