from skimage.io import imread
from matplotlib import pyplot as plt
import matplotlib.cm as cm # used for Builtin colormaps, colormap handling utilities
example_file = ("http://upload.wikimedia.org/wikipedia/commons/7/7d/Dog_face.png")
image = imread(example_file,as_gray=True) #used from skimage.io library
#Load an image from file (Here Image URL is provided in 'example_file' variable.)
#here as_gray=True will convert coloring image to grayscale image
plt.imshow(image, cmap='gray')
#imshow() function performs the rendering and uses a grayscale color map
# rending is making a complete image from the data provided in the form of numpy array
plt.show()
print(example_file)
print()
print(image)