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:
Metadata
Release files for imWatermark 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imWatermark-0.0.2.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imWatermark-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / imWatermark-0.0.2.tar.gz
| Download URL | imWatermark-0.0.2.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd638f7fad4ae1b69b413eb3c56f63512ca31417c5a830167a33b9a7f35d08aa
|
|
BLAKE2b-256 checksum How to use checksums |
5767960b6747a432f549efab12c84fbe091e9651c2fbc2ca29e58f2999ed5465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
|
Release files / imWatermark-0.0.2-py3-none-any.whl
| Download URL | imWatermark-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ddb693a007120390323867ed6f63b5691ffb03ecc5dac096400104bd23418ca
|
|
BLAKE2b-256 checksum How to use checksums |
ad972311993d535715bbeebdbf262c7c3aa967231d265ca0a7fb01eb0dde573e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
|