How to convert between NumPy array and PIL Image

Updated post here: https://codeyarns.github.io/tech/2014-01-16-how-to-convert-between-numpy-array-and-pil-image.html

4 thoughts on “How to convert between NumPy array and PIL Image

  1. I am working on Python project involving Tkinter and OpenCV. I stumbled on this trick you used. Thank you very much for sharing.

    Like

  2. if i have matrix of [14965,16,32,256] where 14965 is the number of images. I want to save every image in jpg formate to use it in another project, How can i do this?

    Like

Leave a Reply to Mohammed Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.