Triple Recovery paper implementation in python
Project description
triple-recovery
A paper implementation in numpy python
Requirements
- Python >= 3.7
Installation
pip3 install triplerecovery
Auto Installed
- numpy >=1.22.4
- opencv-python >=4.6.0.66
Usage
Embedding
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
triplerecovery2-0.0.1.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for triplerecovery2-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7419a5b8115680cf5735de70fa2b3e3e5ba7285436ffe4213389e71e7730a762 |
|
MD5 | 1310343779ceae2c9553b4196cac2a7c |
|
BLAKE2b-256 | e7289f8c3967b45d3216c6274e3bce6e15368a98375d8f949114f236b0f0ab7c |