Algorithms for image processing, designed for OCEAN Protocol compute to data (samples).
- Python 3.7+
#get repo
git clone git clone https://github.com/calina-c/ocean-lena.git
cd ocean-lena
#set up virtualenv
python -m venv venv
source venv/bin/activate
#install virtualenv dependencies
pip install -r requirements.txt
Run any of the algorithms locally e.g. for grayscale:
python grayscale.py local
The result will be saved in output/grayscale.png. The output folder is gitignored.
Assumes "DIDS" is set as an environment variable, input relies in /data/ddos
, and output is sent to data/outputs/result
):
python grayscale.py
Lena is a standard test image widely used in the field of image processing since 1973. It is a picture of the Swedish model Lena Forsén, shot by photographer Dwight Hooker, cropped from the centerfold of the November 1972 issue of Playboy magazine.