I'm getting a segmentation fault when I try to read and show an image with opencv in Python. I installed using:
pip3 install opencv-contrib-python
The code is only three lines:
import cv2
im = cv2.imread('1.jpg')
cv2.imshow("image",im)
But I get this error:
QObject::moveToThread: Current thread (0x11bdba0) is not the object's thread (0x15a18a0).
Cannot move to target thread (0x11bdba0)
Command terminated
Pillow shows the image fine, so I am assuming something secret went wrong with the installation. Does anybody know what the problem could be?