lenna_cli

Crates.iolenna_cli
lib.rslenna_cli
version0.1.7
sourcesrc
created_at2021-06-22 15:24:00.708751
updated_at2021-08-14 07:48:33.68887
descriptionCommand line interface to run algorithms on images.
homepagehttps://lenna.app
repositoryhttps://github.com/lenna-project/lenna-cli
max_upload_size
id413434
size4,561,408
developer (github:lenna-project:developer)

documentation

https://docs.rs/lenna_cli

README

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.

Commit count: 46

cargo fmt