I have a png image and a background image in jpg format. I want to overlay the png image over the jpg image. The PNG image should completely overlap the Jpg image
When I use this code I get the error message that the images cannot be overlaid because the dimensions of the images do not match. If I adjust the dimensions, then the images are shown above and below, meaning they don't overlap
img1 = cv2.imread('test.png')
img2 = cv2.imread('test1.jpg')
img3 = vis = np.concatenate((img1, img2), axis=0)
How can I solve this problem? I am very thankful for tips.