OpenCV menggambar dua gambar berdampingan

import cv2
import numpy as np

img1 = cv2.imread("path/to/img1")
img2 = cv2.imread("path/to/img2")

vertical_concat = np.concatenate((img1, img2), axis=0)
cv2.imshow("Vertical plot", vertical_concat)
cv2.waitKey(0)

horizontal_concat = np.concatenate((img1, img2), axis=1)
cv2.imshow("Horizontal plot", horizontal_concat)
cv2.waitKey(0)

cv2.destroyAllWindows()
wolf-like_hunter