height width image opencv

49

height width image opencv -

import cv2

img = cv2.imread('path/to/img',0)
height, width = img.shape[:2]

Comments

Submit
0 Comments