Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 522 Bytes

File metadata and controls

18 lines (13 loc) · 522 Bytes

Write Something to Image

把Bytes刻进图像里。

Depends

pip3 install opencv-python

Encode text

text_to_enc.txt中的文字写进图片里。运行encode_text_to_img.py

Decode text

保存好文件为download.png后,运行decode_img_to_text.py会解码出文字。

Encode/decode general files like an image

image_to_enc.jpg写进图片里。运行encode_img_to_img.py

保存好文件为download_img.png后,运行decode_img_to_file.py会解码出相应文件。