OpenCV Python, watermark can't be seen on white backgrounds

I am trying to paste my watermark to white-backgrounded image: watermark = cv2.imread(watermark_path) watermark_ratio = round(image.shape[1]/8) # calculating the ratio resized_watermark = cv2.resize(watermark, (watermark_ratio, round(watermark_ratio/2)), interpolation = cv2.INTER_AREA) # resizing watermark size h_logo, w_logo, _ = resized_watermark.shape h_img, w_img, _ = image.shape top_y = h_img – h_logo left_x = w_img – w_logo bottom_y = h_img… Read More OpenCV Python, watermark can't be seen on white backgrounds

Python version 3.10 generating a error when trying to add a watermark to an image

Note: all 3.9 versions run the code perfectly creating the watermarked image. I created this project to fit a watermark cross that perfectly fits the size of the image, but in this line of code: paste_mask = watermark.split()[3].point(lambda i: i * TRANSPARENCY / 100.) It generating this error: File "c:\Users\Computador\Desktop\Python\Watermark.py", line 29, in watermark_with_transparency paste_mask… Read More Python version 3.10 generating a error when trying to add a watermark to an image