atermark is a message that may be a logo, signature, or stamp that is used to recognize the ownership of the creator. It visualizes the logo without interpreting the visibility of the image. These watermarks are used by most of the organizations, professionals before sharing their content in public platforms to prevent other people from using it.

In this article, we will demonstrate how to create a watermark on the original image through the logo and text.

Topics covered in this article:

  • Creating watermark using an image
  • Defining the transparent function
  • Defining function to add image
  • Creating watermark using text
  • Importing PIL function
  • Adjusting the position of the text

So, now we will start adding the watermark to the image using the below implementation in which we will use the OpenCV library of python.


Creating watermark using an image

**Step-1: **Importing required libraries and loading the images.

import cv2

from google.colab.patches import cv2_imshow

image_1= cv2.imread('/content/images(10).jpg')

image_2=cv2.imread(’/content/images_logo(11).jpg’)

cv2_show(image_1)

Watermark On Images Using OpenCVPIN IT


#developers corner #computer vision #image processing #opencv #python #watermark

How To Create A Watermark On Images Using OpenCV
23.45 GEEK