Libraries Required for this 1.numpy 2.Matplotlib 3.opencv Taking input from the user using img1 = cv2.imread("imageone.jpg") img2 = cv2.imread("imagetwo.png") Converting both the images into RGB format from BGR img1 = cv2.cvtColor(img1,cv2.COLOR_BGR2RGB) Showing image using Matplotlib plt.imshow(imagename)