-1

Need help convert numpy array image to image with full color I must use PIL because I will upload image to ftp server after this process done

enter image description here

Thank You

pp7sec
  • 75
  • 4
  • Does this answer your question? [Python OpenCV - imshow doesn't need convert from BGR to RGB](https://stackoverflow.com/questions/50963283/python-opencv-imshow-doesnt-need-convert-from-bgr-to-rgb) – HansHirse Jan 28 '21 at 07:45

1 Answers1

3

cv2 uses BGR, Image uses RGB. So reverting the channel order would work

Image.fromarray(numpy_array[:,:,::-1].astype('uint8'))
Quang Hoang
  • 146,074
  • 10
  • 56
  • 74