LSB-Steganography
LSB-Steganography copied to clipboard
Python program to steganography files into images using the Least Significant Bit.
Ensure "out_f" tp carry file extension all the time before invoking cv2.imwrite() method error: (-2:Unspecified error) could not find a writer for the specified extension in function
Execute line >> new_im = steg.encode_image(cv2.imread("backgournd_image.jpg")) Error message: AttributeError: 'numpy.ndarray' object has no attribute 'width' the return of cv2.imread(~) doesn't has no attribute width. Becuase, the return is numpy.ndarray.
Fixes for various image encoding and decoding issues. Added the ability to choose if the secret is a binary, image, or text in the command line arguments.
[code position](https://github.com/RobinDavid/LSB-Steganography/blob/a1d4d8b70ad999d9d79b90d7a1c9ba8cb1976bf8/LSBSteg.py#L28) add this: ```python im=im.copy() #for ndarray,other Types also be like this ``` Otherwise he could change the source data and cause some trouble
i just trying to encode text and put it in the image but after decode the image : Text value: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ which is not correct. i'm using Python3.5
I tried to embed a string into an image however this error occurs. looks like image function problem ``` Traceback (most recent call last): File "testlsb.py", line 74, in main()...