Metadata-Version: 2.1
Name: triplerecovery
Version: 0.0.6
Summary: Triple Recovery paper implementation in python
Home-page: https://github.com/crackaf/triple-recovery
Author: Hunzlah Malik
Author-email: hunzlahmalik@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Provides-Extra: test
License-File: LICENSE

# triple-recovery
A paper implementation in numpy python

# Requirements
- Python >= 3.7

# Installation
```bash
pip3 install triplerecovery
```
## Auto Installed
-  numpy >=1.22.4
-  opencv-python >=4.6.0.66

# Usage
## Embedding
```py
import cv2
import triplerecovery as trir

# image can be rgb or grey
# grey must have two dimetions so add cv2.
# if you know the image is grey then use cv2.IMREAD_GRAYSCALE

imarr=cv2.imread("<your image path>")
embeded_image=trir.embed(imarr).imarr
```
## Recovery
```py
import cv2
import triplerecovery as trir

imarr=cv2.imread("<your embeded image path>")
recovered_image=trir.recover(imarr).imarr
# OR for changed interpolation
recovered_image=trir.recover(imarr, interpolation = cv2.INTER_CUBIC).imarr
```
