Invisible Watermark is a Python library designed for robustly embedding and extracting invisible watermarks within images. It provides functionalities to encode arbitrary text or data into an image without perceptibly altering its visual appearance, and subsequently decode the hidden information. The library is actively developed, currently at version 0.2.0, with releases occurring periodically to introduce features and fixes.
pip install invisible-watermarkVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a dummy image, then initialize the InvisibleWatermark library to encode a text watermark into it, and finally decode the watermark from the saved output image.
Ensure `opencv-python` (or `opencv-python-headless` for server environments) is successfully installed. You may need to manually verify `import cv2` works. For persistent issues, consult OpenCV installation guides for your specific OS/architecture.
Always double-check image paths for correctness (absolute vs. relative). Prior to using the library, verify images are readable by OpenCV: `import cv2; img = cv2.imread('your_image.jpg'); if img is None: print('Failed to load image')`.It is recommended to pin your `invisible-watermark` version in your `requirements.txt` (e.g., `invisible-watermark==0.2.0`) and review release notes or the GitHub repository for any breaking changes before upgrading.
No dependency data recorded yet.