# Displaying full screen image flashes small image

**URL:** https://forum.opencv.org/t/displaying-full-screen-image-flashes-small-image/24125
**Category:** Python
**Created:** [October 14, 2025, 2:38pm UTC](https://forum.opencv.org/t/displaying-full-screen-image-flashes-small-image/24125 "2025-10-14T14:38:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![KevinRW](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@KevinRW](https://forum.opencv.org/u/KevinRW)
#### Post date: [October 14, 2025, 2:38pm UTC](https://forum.opencv.org/t/displaying-full-screen-image-flashes-small-image/24125/1 "2025-10-14T14:38:37Z")

</div>

I’m displaying a fullscreen image as follows:

```auto
    image = cv2.imread(image_path)
    # Create a fullscreen window
    cv2.namedWindow(window_name, cv2.WINDOW_NORMAL)
    cv2.setWindowProperty(window_name, cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
    # Show the image
    cv2.imshow(window_name, image)
    cv2.waitKey(2)

```

However I always see a small window flash up before the image occupies the full screen. Sometimes this small windows seems empty sometimes it looks to contain the image I’m displaying.

Is there a way to prevent this?

I’m running python opencv 4.12 on a Raspberry Pi 5.

---

<div class="post-metadata">

### Author: ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)
#### Post date: [October 14, 2025, 6:09pm UTC](https://forum.opencv.org/t/displaying-full-screen-image-flashes-small-image/24125/2 "2025-10-14T18:09:12Z")

</div>

you could try setting the window size.

or use a proper GUI toolkit instead of imshow.
