Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get image height width cv2

>>> import numpy as np
>>> import cv2
>>> img = cv2.imread('foo.jpg')
>>> height, width, channels = img.shape
>>> print height, width, channels
  600 800 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #image #height #width
ADD COMMENT
Topic
Name
6+4 =