Opencv imshow is right whereas imwrite is wrong?
Opencv imshow is right whereas imwrite is wrong? Question: I just want to cover an png image with another png image, cv2.imshow got the right result, cv2.imwrite got the strange result. coverImg = cv2.imread(‘./images/cover.png’, cv2.IMREAD_UNCHANGED) back = cv2.imread(‘./images/back.png’, cv2.IMREAD_UNCHANGED) x_offset = y_offset = 0 y1, y2 = y_offset, y_offset + coverImg.shape[0] x1, x2 = x_offset, …