Open B14ckP4nd4 opened 1 year ago
This was my solution:
def add_alpha_channel(image):
height, width = image.shape[:2]
# Create an alpha channel with full opacity for every pixel
alpha_channel = np.ones((height, width, 1), dtype=image.dtype) * 255
return np.concatenate((image, alpha_channel), axis=-1)
background_img_float = add_alpha_channel(cv2.imread('bg.jpg', -1).astype(float))
I tried to use multiply effect and I got this error
here is my code :