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:
This is the sample image watermarked:
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for imWatermark-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ddb693a007120390323867ed6f63b5691ffb03ecc5dac096400104bd23418ca |
|
MD5 | 672739f0556a251667e42177423718f6 |
|
BLAKE2b-256 | ad972311993d535715bbeebdbf262c7c3aa967231d265ca0a7fb01eb0dde573e |