Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data from an image 1

Status
Not open for further replies.

AMiSM

Technical User
Jan 26, 2006
128
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top