pyqt5显示numpy类型图片
代码如下:imgName, imgType = QFileDialog.getOpenFileName(None, "打开图片", "", type_image)
img = cv.imread(imgName)
src = cv.Canny(img,100,200)
self.label.setPixmap(src)
报错:
TypeError: setPixmap(self, QPixmap): argument 1 has unexpected type 'numpy.ndarray'
求教如何转换类型??