Python Forum
pillow reversing the order of pixels after every row
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pillow reversing the order of pixels after every row
#5
I expected that pixels variable is a numpy array, but, in fact, it is not. Find a way to extract/convert an Image object to numpy array; try np.asarray(pixels); To convert numpy array back to Image object, use Image.fromarray method.
Reply


Messages In This Thread
RE: pillow reversing the order of pixels after every row - by scidam - May-27-2020, 09:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  identify not white pixels in bmp flash77 17 2,615 Nov-10-2023, 09:21 PM
Last Post: flash77
  Convert 400 grayscale pixels into RGB python420 1 2,473 Jan-02-2020, 04:19 PM
Last Post: Clunk_Head
  How to extract temperature value of pixels of a thermal image recorded by IR camera hamacvan 1 14,501 Jan-13-2019, 06:06 PM
Last Post: Larz60+
  Reversing word in strings yields unexpected result Dec 4 3,656 May-17-2017, 05:32 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020