+ 2

how to access image files by python coding

27th Jan 2018, 9:41 AM
RAMALINGAM R
RAMALINGAM R - avatar
10 Answers
+ 7
Yep, then pillow will be just fine. You can check out the tutorial there which will walk you through the most common tasks: https://pillow.readthedocs.io/ https://pillow.readthedocs.io/en/latest/handbook/tutorial.html
27th Jan 2018, 10:34 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 6
What do you want to do with them? Some image processing? If so, I recommend pillow (PIL) module or perhaps openCV. The first one is much lighter than the other one, but supposedly has only basic image transformations possible.
27th Jan 2018, 10:03 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 6
Definitely possible on RPi, too. Just pip install pillow first, if it's not included into your standard Python build on the berry.
27th Jan 2018, 10:39 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 5
s1 = "source_file" s2 = "output_file" with open(s1, "r") as f: content = f.read() f.close() with open(s2, "w+") as f: f.write(content) f.close()
27th Jan 2018, 10:53 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 2
to do image processing compare the images to find the changes
27th Jan 2018, 10:10 AM
RAMALINGAM R
RAMALINGAM R - avatar
+ 2
i am going to do it in raspberry pi it has inbuilt python software so that i asked hot to open image files
27th Jan 2018, 10:37 AM
RAMALINGAM R
RAMALINGAM R - avatar
+ 2
thankyou i installed it by typing command in the terminal window "sudo apt-get install python3-pip"
27th Jan 2018, 10:45 AM
RAMALINGAM R
RAMALINGAM R - avatar
+ 2
the code works really great thankyou
3rd Feb 2018, 6:01 AM
RAMALINGAM R
RAMALINGAM R - avatar
+ 1
how to copy one dada in a file to another file using python code
27th Jan 2018, 10:47 AM
RAMALINGAM R
RAMALINGAM R - avatar
+ 1
i am trying to copy image file from one location to another location is there any code to copy image file
3rd Feb 2018, 6:23 AM
RAMALINGAM R
RAMALINGAM R - avatar