Skip to main content

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

triplerecovery2-0.0.1.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

triplerecovery2-0.0.1-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page