python - Number of elements in each dimension of image -
i want give input image python script, , find out number of elements in each dimension of input image. there function in python gives number of elements in each dimension.
with scipy:
>>> scipy.misc import imread >>> img = imread("test.jpg") >>> img.shape 0: (963, 712, 3)
where 963 - width, 712 - height, 3 - number of channels.
Comments
Post a Comment