python手记(26)

时间:2022-02-27 15:06:06
#!/usr/bin/env python
import cv2
import sys fn="test2.jpg" if __name__ == '__main__':
print 'http://blog.csdn.net/myhaspl'
print 'myhaspl@qq.com'
print
print 'loading %s ...' % fn
img = cv2.imread(fn)
cv2.imshow('preview', img)
cv2.waitKey()
cv2.destroyAllWindows()

opencv显示图片

python手记(26)