1 | initial version |
image descriptionimport cv2
def main():
imgpath="C:\\Users\\vivekz\\Desktop\\ip\\database\\standard_test_images\\lena_gray_512.tif"
img=cv2.imread(imgpath,cv2.IMREAD_GRAYSCALE)
cv2.namedWindow('lena',cv2.WINDOW_NORMAL)
cv2.imshow('lena',img)
cv2.waitKey(0)
cv2.destroyAllWindows
if __name__=="__main__":
main()
5 | retagged |
import cv2
def main():
imgpath="C:\\Users\\vivekz\\Desktop\\ip\\database\\standard_test_images\\lena_gray_512.tif"
img=cv2.imread(imgpath,cv2.IMREAD_GRAYSCALE)
cv2.namedWindow('lena',cv2.WINDOW_NORMAL)
cv2.imshow('lena',img)
cv2.waitKey(0)
cv2.destroyAllWindows
if __name__=="__main__":
main()