Skip to content

cv2.imshow() not working consistently #362

Closed
@GokulNarayan

Description

@GokulNarayan

Expected behaviour

imshow displays image

Actual behaviour

when calling cv2.imshow(), I mostly get a small window with the correct name but containing only a black screen. It does work sometimes however but it is unpredictable. This issue was not encountered in previous versions of opencv-contrib-python.
error

Steps to reproduce

  • example code

import cv2
import os
import imutils

image = cv2.imread("ref_image.png")

cv2.imshow("test", image)
cv2.waitKey(0)

cv2.destroyAllWindows()

  • operating system : Ubuntu 20.04
  • architecture (e.g. x86): x64
  • python version: 3.8
  • opencv-python version: opencv-contrib-python 4.3.36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions