Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I extract the pixel color information in an image into numbers and store them in a CSV file? These numbers should all go into 1 row and multiple columns. If the image is 50*50 then there should be only 1 row and 2500 columns containing the pixel color information. How can I achieve this in Python? Please advice.
Posted

1 solution

It largely depends on the type of image, since the content of bmp, jpeg, tiff etc each has its own structure. So the first thing you need to do is research the various image handling libraries available for python which can handle the different types.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900