I'm still quite the noob with Python. I'm trying to crop a box from an image and turn it into a flat array of integers. I have succeeded in opening the image, cropping the box, and displaying both the original image and the cropped box (to check my progress).
I've tried im.getdata() and im.load(), but when I try to turn the box into a flat list, I'm running up against type errors.
How do I do this?
Thanks in advance
I've tried im.getdata() and im.load(), but when I try to turn the box into a flat list, I'm running up against type errors.
How do I do this?
Thanks in advance