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.6.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for triplerecovery-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f89e5dd08942ddaa27fc83a77e5a32ef4ef936f4917f744d59b148b7ecfb6c6a |
|
MD5 | d2ee432e4f37f0135c870c3f25cfc65a |
|
BLAKE2b-256 | 4c47f0ecd77a789fba465ccca599f9d02e171f722f333063ee5e440c4e565ff8 |