Computer Science, asked by maryamnawaz063bssegr, 1 month ago

how to get pixles representation in python ​

Answers

Answered by asajaysingh12890
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 loknadamjinaga1044
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