How can i overlay two images without losing the intensity of the colors of the two images.
I have Image1 and Image2:
I tried using 0.5 alpha and beta but it gives me a merged image with half the color intensity
dst = cv2.addWeighted(img1,0.5,img2,0.5,0)
but when i try using 1 to both alpha and beta channels, it only gives me the merged regions.
dst = cv2.addWeighted(img1,1,img2,1,0)
I have to get an output that looks like this.






BGR,purple(255, 0, 255) = blue(255, 0, 0) + red(0, 0, 255)