#cli #image-processing

bin+lib lenna_cli

Command line interface to run algorithms on images

8 releases

0.1.7 Aug 14, 2021
0.1.6 Aug 14, 2021
0.1.1 Jul 25, 2021
0.1.0 Jun 22, 2021

#165 in Images

Download history 19/week @ 2022-03-10 43/week @ 2022-03-17 5/week @ 2022-03-24 3/week @ 2022-03-31 3/week @ 2022-04-14 5/week @ 2022-04-21 64/week @ 2022-04-28 37/week @ 2022-05-05 130/week @ 2022-05-12 37/week @ 2022-05-19 32/week @ 2022-05-26 65/week @ 2022-06-02 2/week @ 2022-06-16

107 downloads per month

MIT license

4MB
404 lines

lenna-cli

lenna-cli Crates.io dependency status

Lenna is a library for image processing algorithms and apps.

This is the Command Line Interface for Lenna based on lenna_core.

asciicast

🐰 quickstart

cargo build

✂️ copy plugins

Here are some plugins. After the plugins are built, they can be copied and used with lenne-cli.

mkdir plugins
cp ../lenna-plugins/target/release/lib*.so plugins/

🔧 config

Create a file called lenna.yml.

pipeline:
  - id: resize
    width: 500
    height: 500
  - id: canny
    low: 50.0
    high: 100.0
  - id: blur
    sigma: 1.5

Id is the plugin, the other attributes are the parameter for the plugin.

👻 run

cargo run --features="libloading" -- lenna.png -o lenna_out.png -c lenna.yml

Run

Install

Install using snapcraft.

snapcraft
sudo snap install lenna-cli_*.snap --devmode --dangerous
lenna-cli --help
lenna-cli lenna.png --config lenna.yml --output out.png --plugins /snap/lenna-cli/current/plugins

📜 License

This software is licensed under the MIT © lenna-project.

Dependencies

~14MB
~177K SLoC