【文件属性】:
文件名称:steganography:隐写术
文件大小:1.39MB
文件格式:ZIP
更新时间:2021-05-04 18:38:42
Python
隐写术:将图像隐藏在另一个图像中
用法
创建一个virtualenv并安装要求:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
然后,使用以下方法合并和取消合并文件:
python steganography.py merge --img1=res/img1.jpg --img2=res/img2.jpg --output=res/output.png
python steganography.py unmerge --img=res/output.png --output=res/output2.png
要在Python代码中使用Steganography类,您将需要使用Pillow库中的Image模块,例如:
from PIL import Image
merged_image =
【文件预览】:
steganography-main
----requirements.txt(27B)
----res()
--------img1.jpg(921KB)
--------img2.jpg(500KB)
----LICENSE(1KB)
----README.md(7KB)
----.gitignore(36B)
----steganography.py(5KB)