white border while displaying a full image with python and opencv

This question is related with this one: how to display a full screen images with python2.7 and opencv2.4

I want to display a black image full screen, i have created even a black image with the same resolution of the screen. But i get a little white stripe on top and on the left of the screen. I don't know if it is a problem of my screen that is not aligned or its my code. I have tried in 2 displays and the white stripe is displayed.

So if you run this code below, do you get a full black image?

import numpy as np import cv2 if __name__ == "__main__": img = cv2.imread('nero.jpg') 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) cv2.destroyAllWindows()

EDIT : This method is not working for me. do you know anther way or libraries to display a full screen image?

EDIT 2: still unsolved, i am starting to think that it is an openCv bug


Yes I do.

img = np.zeros((900, 1600)) #my aspect ratio is 16x9 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)

gives me a fully black screen. Are you sure you are using the right aspect ratio?


  • Accessing function attribute created in a decorator outside that decorator
  • UnicodeEncodeError: 'ascii' codec can't encode character u'\\xfa' in posi
  • exceptions.TypeError: src is not a numpy array, neither a scalar
  • Face aligment check with DLIB
  • OpenCV's video capture not returning an image
  • Error while trying to upload file using kairos
  • Draw Filled Shape from Four Points
  • Animate using a pixmap or image sequence in Python with QT4
  • dbus Variant: How to preserve boolean datatype in Python?
  • Multiprocessing pool example (parallel) is slower than sequential. Trying to understand pool in pyth
  • Could be Text orientation of JTextArea changed by keyboard shortcut?
  • How can I write a recursive function to reverse a linked list?
  • Zooming an element and its contents— an alternative to CSS3's zoom property?
  • Pyglet uses too much cpu
  • Why dill dumps external classes by reference, no matter what?
  • css background images not always displayed
  • You tube videos are not playing
  • Microsoft Excel Pivot miscalculation in Sum for positive and negative numbers
  • Put value at centre of bins for histogram
  • CSS - Cannot get one spanned style to override another inherited style and align left
  • Suppressing passwd when calling sqlplus from shell script
  • AJAX Html Editor Extender upload image appearing blank
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Disable Enter in editText android
  • Change multiple background-images with jQuery
  • Algorithm for a smudge tool?
  • Why is the size of this struct 32?
  • Can Jackson SerializationFeature be overridden per field or class?
  • Window Size for Mac application
  • How to check if every primary key value is being referenced as foreign key in another table
  • Join two tables and save into third-sql
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • Android Studio and gradle
  • python regex in pyparsing
  • Acquiring multiple attributes from .xml file in c#
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How can I remove ASP.NET Designer.cs files?
  • Converting MP3 duration time
  • java string with new operator and a literal