работающая стеганография LSB и DCT
я устал... DCT убивает
This commit is contained in:
13
minimal_test.py
Normal file
13
minimal_test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
print("Скрипт запустился")
|
||||
from core.dct import encode_dct, decode_dct
|
||||
print("Импорт прошел")
|
||||
from PIL import Image
|
||||
print("Создаем изображение")
|
||||
img = Image.new('L', (400, 400), 128)
|
||||
img.save("test_min.png")
|
||||
print("Изображение создано")
|
||||
result = encode_dct("test_min.png", "Hi", "out_min.png")
|
||||
print(f"Результат кодирования: {result}")
|
||||
decoded = decode_dct("out_min.png")
|
||||
print(f"Декодировано: '{decoded}'")
|
||||
print("Готово")
|
||||
Reference in New Issue
Block a user