Task1 : Creating an image using cv2 python code. Please find the code as below: import cv2
import numpy as np img2 = np.zeros((880,320,3),np.uint8)
img2[0:440, :] = (255,0,255)
img2[441:880, :] = (255,255,0)
buffer2[:, :, :] = img2[:, :, :]
cv2.imshow(‘hi’, img2)
cv2.waitKey()
cv2.destroyAllWindows() Here in the code you can see two modules cv2 and numpy are imported. Initially in…