Answers for "how to convert an image to matrix in python"

0

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)
Posted by: Guest on July-31-2021

Code answers related to "how to convert an image to matrix in python"

Python Answers by Framework

Browse Popular Code Answers by Language