Skip to content Skip to sidebar Skip to footer

OpenCV Imshow Fails Randomly

When I want to display an image, the cv2.imshow() fails randomly. import cv2 frame = cv2.imread('desk.jpg', cv2.IMREAD_COLOR) cv2.imshow('test', frame) cv2.waitKey(0) cv2.destroy

Solution 1:

There is another question with a similar problem, and according to this issue it is a bug:

This issue cannot be fixed in OpenCV, the issue is related to Qt conflicts between the bundled Qt4 in the Python wheels and system Qt4/5 installations.

A way to solve it is probably to build OpenCV from source code.


Post a Comment for "OpenCV Imshow Fails Randomly"