how to get pixles representation in python
Answers
Answered by
1
Answer:
The procedure for extraction is :
import the Image module of PIL into the shell: >>>from PIL import Image.
create an image object and open the image for reading mode: >>>im = Image.open('myfile.png', ' r') ...
we use a function of Image module called getdata() to extract the pixel values.
Answered by
0
Answer:
The procedure for extraction is :
import the Image module of PIL into the shell: >>>from PIL import Image.
create an image object and open the image for reading mode: >>>im = Image.open('myfile.png', ' r') ...
we use a function of Image module called getdata() to extract the pixel values.
Similar questions