a.
Load Image and Give the title of image
#import required module cv2, matplotlib and numpy
import cv2
import [Link] as plt
import numpy as np
#Load the image file into memory
img = [Link]('[Link])
#Display Image
[Link](img)
[Link]('Octopus’)
[Link]('off')
[Link]()
b. Change the colour of image and change the image
to grayscale
#import required module cv2, matplotlib and numpy
import cv2
import [Link] as plt
#Load the image file into memory
174%
[Link]('[Link]) #Chaning image colour
image colour
[Link]([Link](img, [Link]
BGR2RGB))
[Link](Octopus)
pltaxis('off')
[Link]()
c. Print the shape of the image
import cv2
[Link]('[Link].(0))
print(img shape)
Result: (1920, 1357)
d. Display the maximum and minimum pixels of
image
import cv2
[Link]('[Link]'.0)
print([Link]())
print([Link]())
result: 0
255