Files
pytry/cv_test.py
T
2014-02-05 10:44:04 +05:30

7 lines
127 B
Python

import cv2
# read image
im = cv2.imread("Photo0094.jpg")
h,w = im.shape[:2]
print h,w
# save image
cv2.imwrite("result.png",im)