Implementation of algorithms DCT, DWT watermarking.
Reference repository https://github.com/Messi-Q/python-watermark/tree/master/image_digital_watermark/case3.
Source code was edited to be able to embed and extract the signature as an image.
pip install -r requirements.txt
python main.py --origin path_cover_image --ouput path_output_image
Example:
python main.py --origin cover.jpg --ouput watermarked.jpg
- Then choice a type from "DCT" or "DWT".
- After that, choice "embedding".
python main.py --origin path_watermarked_image --ouput path_extracted_signature
Example:
python main.py --origin watermarked.jpg --ouput signature.jpg
- Then choice a type from "DCT" or "DWT".
- After that, choice "extracting".
python main.py --origin path_watermarked_image --ouput path_attacked_image
Example:
python main.py --origin watermarked.jpg --ouput watermarked.jpg
- Then choice "Attack".
- After that, choice a type attack.