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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -