import cv2
import numpy as np
import matplotlib.pyplot as plt

img = cv2.imread('dog.jpg',cv2.IMREAD_GRAYSCALE)
#IMREAD_COLOR=1
#IMREAD_UNCHANGED=-1

cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()


#using matplotlib
plt.imshow(img, cmap='gray', interpolation='bicubic')
#To Plot A Line
plt.plot([50,100],[80,100],'c',linewidth=5)
plt.show()


#Save
cv2.imwrite('retreiver.png',img)
