Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

conversion un type image en array python

from PIL import Image 
from numpy import asarray 
  
  
img = Image.open('Sample.png') 
  
numpydata = asarray(img) 
  
print(type(numpydata)) 
  
print(numpydata.shape)
Source by fr.acervolima.com #
 
PREVIOUS NEXT
Tagged: #conversion #type #image #en #array #python
ADD COMMENT
Topic
Name
9+2 =