Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhsattarian/steganography
Coding an image within another by compositing high-order bits of each image.
https://github.com/mhsattarian/steganography
computer-vision python steganography
Last synced: about 1 month ago
JSON representation
Coding an image within another by compositing high-order bits of each image.
- Host: GitHub
- URL: https://github.com/mhsattarian/steganography
- Owner: mhsattarian
- Created: 2019-02-23T22:54:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T15:31:01.000Z (almost 6 years ago)
- Last Synced: 2024-11-08T09:51:36.777Z (3 months ago)
- Topics: computer-vision, python, steganography
- Language: Python
- Size: 8.81 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Steganography
```
┏━┓╺┳╸┏N╸┏━╸┏O┓┏┓╻┏━┓┏E╸┏E┓┏━┓┏E┓╻ ╻╻ ╻
┗━┓ A ┣╸ ┃╺┓┣━┫┃U┫┃ ┃┃╺┓┣┳┛┣M┫┣━┛┣?┫┗┳┛ Hide an Image within another
┗━C ╹ ┗━╸┗Y┛╹ ╹╹ ╹┗S┛┗━┛╹┗╸╹ ╹╹ ╹ ╹ ╹ .py
```Coding an image within another by compositing high-order bits of each image.
As seen below 4 high-order bit of each pixel of an image contain most if the details about it:
![Montage of extracted images](Images/extracted_images/montage.png)
We can remove 4 low-order bits and replace them with 4 high-order bits of another image. so we would easily be able to hide an image within another and still got most of the details.
so here we use an image as container also called `container.png` and another one as the data to be code inside it called `containee.png` to produce and image looking exactly like container bot have the containee image inside, hidden:
![](Images/montage.png)
## Usage
> It needs container and containee images to be the same size.
Create a virtualenv and install required packages:
```shell
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
```then, Encode images or Decode with:
```shell
# Encode
python steganography.py encode# Decode
python steganography.py decode
```see `--help` for more options.