关于在使用 pyqt5 QtGui.QImage 图片倾斜
出现问题的图像:
问题代码:
convertToQtFormat = QtGui.QImage(channel_img.data, channel_img.shape[1], channel_img.shape[0],
QImage.Format_RGB888)
解决:
convertToQtFormat = QtGui.QImage(channel_img.data, channel_img.shape[1], channel_img.shape[0],
channel_img.shape[1] * 3, QImage.Format_RGB888)
解决之后:
参考博客:https://blog.csdn.net/silenceasas/article/details/107480228