Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert an image to matrix in python

import matplotlib.image as image
img=image.imread('image_name.png')
print('The Shape of the image is:',img.shape)
print('The image as array is:')
print(img)
 
PREVIOUS NEXT
Tagged: #convert #image #matrix #python
ADD COMMENT
Topic
Name
6+7 =