I use dnf install opencv.
sudo dnf install opencv opencv-contrib opencv-core opencv-devel opencv-doc python3-opencv
Then I run the python code:
import cv2 as cv
img = cv.imread('/home/a/dog.jpeg')
cv.imshow('dog', img)
Then I got the following error:
QSocketNotifier: Can only be used with threads started with QThread
My system is Fedora release 34.
Why and how to solve it?