Skip to main content

This snippet of code attempts to watermark images.

Project description

imWatermark

This snippet of code attempts to watermark images.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imWatermark-0.0.2.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

imWatermark-0.0.2-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page