blind-watermark embeds hidden data in images and extracts it later without the original picture. It ships as a Python package and a small command-line tool.
Overview
The library implements invisible watermarking for images based on DWT-DCT-SVD (documented sources also refer to DCT and SVD). You can hide text, another image, or arrays of bits inside a host image, then recover the payload from the watermarked file alone using passwords and known watermark shape.
Python callers use the WaterMark class with separate passwords for the image and payload, read the carrier and watermark, embed to an output file, and extract with the recorded bit length or dimensions. The CLI supports embed and extract subcommands with password and shape flags.
Documentation includes attack demonstrations showing extraction after rotation, cropping, masking, resizing, noise, and brightness changes on sample images. Optional multiprocessing speeds work across CPU cores. A related text watermark project is listed separately.
Install via pip for releases or from a local checkout for development. Password parameters and wmshape metadata are required so extraction knows the expected payload size.
Key features
- Embed text watermarks in images
- Embed image or bit-array payloads
- Extract without original image
- Password-protected embed and extract
- Command-line embed and extract
- Multiprocessing support
- Documented robustness test cases
- Python API with shape metadata
Use cases
- Hidden ownership marks in photos
- Traceable image distribution
- Embedding small binary flags in graphics
- Teaching blind watermarking techniques
- Batch watermarking from scripts