[python] image resolution
import cv2
import numpy as np
# read image into matrix.
m = cv2.imread("python.png")
# get image properties.
w,h,bpp = np.shape(m)
# print image properties.
print "width: " + str(w)
print "height: " + str(h)
print "bpp: " + str(bpp)
댓글
댓글 쓰기