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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
triplerecovery-0.0.4.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for triplerecovery-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff4bef6a506ec3310bd2118c72862ddad9cf1ec89ad8a634c4b0a5ffd2de9114 |
|
MD5 | 9a2f95cb4783675a882e1f87eaa0c50a |
|
BLAKE2b-256 | 8e630f3d74f4192a5e01a96ab27abfc3f81f768dbefb77c5d40aad1ea2c331c5 |