white border while displaying a full image with python and opencv

asked 2013-08-26 05:41:04 -0600

Hi! I want to display a black image in a full screen mode. It looks a really sample task to do, but when i run the code below i get a little white strip on top and on the left. It doesn't matter if i change the size of the numpy array, i always get it. If you run this code, do you get a fully black screen?? I have tried with different laptop and different version of opencv thanks

img = np.zeros((800, 1280)) #my resolution is 800, 1280
cv2.namedWindow("test", cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty("test", cv2.WND_PROP_FULLSCREEN, cv2.cv.CV_WINDOW_FULLSCREEN)
cv2.imshow("test",img)
cv2.waitKey(0)
edit retag flag offensive close merge delete

Comments

Actually this is a reported bug, but there hasn't been a fix yet.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-26 06:01:12 -0600 )edit

What about you? Have you tried the code above? have you seen the withe strip?

sniper87 gravatar imagesniper87 ( 2013-08-26 08:59:11 -0600 )edit

I do not program in python, nor have I experienced the problem on Windows and C++. However it seems that others have the same problem, so I pointed you in the right direction of someone with the same problem. Let's hope someone with Python can confirm the bug and then you guys can try to work out a fix.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-26 09:35:56 -0600 )edit