Why is PIL's Image.fromarray() distorting my image color? [duplicate]
问题 This question already has answers here : OpenCV giving wrong color to colored images on loading (2 answers) Closed 11 days ago . I am generating thumbnails for mp4 videos using the following code: import cv2 as cv from PIL import Image vidcap = cv.VideoCapture(videoPath) vidcap.set(cv.CAP_PROP_POS_MSEC, millisecond) #Turn video frame into numpy ndarray success, image = vidcap.read() cv.imwrite('fromImage.jpg', image) #line to be replaced The thumbnail generated from a high budget,