i have a problem where i need to go from this input:
First Input src1 = input2.png
:
applying this src2 = input2.png
as a mask:
to get this output:
I have tried to, but i didnt know how specifiy that the outer color is alpha color (completely transparent) i either endup with black or white.
src1 = cv2imread('input1.png')
src2 = cv2.imread('input2.png')
both same size
print(src2.dtype)
# uint8
dst = cv2.bitwise_and(src1, src2)
cv2.imwrite('res.jpg', dst)