我遇到线程错误:QObject::moveToThread:当前线程(0x7c2d90)不是对象的线程(0xcc44d0)。无法移动到目标线程 (0x7c2d90)
在尝试运行以下程序时。当我取下最后两行时,它不会给我这个错误。谁能说出为什么会这样?
import sys
import cv2
fileName = sys.argv[1]
print "image read from commandline"
img = cv2.imread(fileName)
print "image sucessfully read"
image = cv2.imread('testimage1.jpg', 0)
cv2.imshow('image', image )
cv2.waitKey(0)