Skip to content

Mamdasn/imWatermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI Latest Release Package Status Downloads License Repository Size

imWatermark

This snippet of code attempts to watermark images.

Installation

Run the following to install:

pip install imWatermark

Usage

import cv2 
import numpy as np
from imWatermark import watermark

img_fullname="assets/lotus.jpg"

img = cv2.imread(img_fullname)
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
v = hsv[:, :, 2].copy()

v_watermark = watermark(v, 8)
    
hsv[:, :, 2] = v_watermark
img_out = cv2.cvtColor(hsv, cv2.COLOR_HSV2BGR)
    
cv2.imwrite('assets/lotus-watermark.jpg', img_out)

Output

This is a sample image:
"Sample Image"
This is the sample image watermarked:
Watermarked Sample Image

About

This snippet of code attempts to watermark images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages