This project is for protecting the data authenticity of images. I used Ping Wah Wong's algorithm for watermark insertion and extraction.[1] The only difference of the program from the Wong's algorithm is that it does not include the public key encryption part but I will add that part in the future.
Below image shows the watermark insertion algorithm:
Below image shows the watermark extraction algorithm:
host image:
watermark image:
watermarked image:
manipulated watermarked image: (numbers on the receipt are manipulated)
extracted watermark image: (shows the manipulations)
Check the code for more information.
[1] P. W. Wong, “A Public Key Watermark for Image Verification and Authentication” May 1998. (https://ieeexplore.ieee.org/document/723526)