Mastering Development

PyQt5 OpenCV QImage, QPixmap Pictures are output incorrectly [duplicate]

I am using opencv to open an image and putting qimage into qpixmap. Since the Korean route is included, imread is performed in the following way. def imread(filename, flags=cv2.IMREAD_COLOR, dtype=np.uint8): try: n = np.fromfile(filename, dtype) img = cv2.imdecode(n, flags) return img except Exception as e: print(e) return None The image you want to pixmap Photos […]