printimg-rust

crates.io crates.io

Print an image or a video in terminal using OpenCV.
Currently Linux is supported.

ferris

Installation

Ubuntu 20.04

sh $ sudo apt install libopencv-dev clang libclang-dev $ cargo install printimg

Ubuntu 18.04

sh $ sudo apt install libopencv-dev clang libclang-dev $ cargo install printimg --features opencv-32

Other (Use Docker)

Multi-architecture docker image is available.

sh $ docker pull oza6ut0ne/opencv:4.3.0 # already installed in the image!

Windows (experimental)

  1. Install OpenCV and LLVM with chocolatey and set environment variables.
    (See README.md of twistedfall/opencv-rust)
  2. Then, install with cargo. cmd cargo install printimg

    Usage

```sh

print image.

$ printi foo.png

print video.

$ printi bar.mp4

print video from USB camera 0.

$ printi 0

print from url.

$ printi https://rustacean.net/assets/rustacean-flat-happy.png ```