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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page