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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file imWatermark-0.0.2.tar.gz.

File metadata

  • Download URL: imWatermark-0.0.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for imWatermark-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fd638f7fad4ae1b69b413eb3c56f63512ca31417c5a830167a33b9a7f35d08aa
MD5 75944f50cf9f248bbcf575d2dc649265
BLAKE2b-256 5767960b6747a432f549efab12c84fbe091e9651c2fbc2ca29e58f2999ed5465

See more details on using hashes here.

File details

Details for the file imWatermark-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: imWatermark-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for imWatermark-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddb693a007120390323867ed6f63b5691ffb03ecc5dac096400104bd23418ca
MD5 672739f0556a251667e42177423718f6
BLAKE2b-256 ad972311993d535715bbeebdbf262c7c3aa967231d265ca0a7fb01eb0dde573e

See more details on using hashes here.

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