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.8.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for triplerecovery-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6530414fe5a9ed3b5023db7206746b188674fe683b16791a5cf312ab71439503 |
|
MD5 | 839e84c3ce2770c4cff1029f5ff80f91 |
|
BLAKE2b-256 | c39350af2cdb030fb1f853512d95a688f9137f21d0c1bf0e68a82eb0224d8526 |