8000 GitHub - oza6ut0ne/printimg-rust: Print an image or a video in terminal.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

oza6ut0ne/printimg-rust

Repository files navigation

printimg-rust

crates.io crates.io

Print an image or a video in terminal.

ferris

Installation (build manually with OpenCV)

Ubuntu 20.04 or above

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

Ubuntu 18.04

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

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.

    cargo install printimg

Installation (without OpenCV)

cargo install printimg --no-default-features --features image

or download prebuilt binary from Releases.
In this case only image files are supported, but OpenCV is not required.
This is useful if OpenCV cannot be installed in the environment.

Usage

# Print image.
$ printi foo.png

# Print video. (Requires OpenCV)
$ printi bar.mp4

# Print video from USB camera 0. (Requires OpenCV)
$ printi 0

# Print from url. (Requires OpenCV)
$ printi https://rustacean.net/assets/rustacean-flat-happy.png

About

Print an image or a video in terminal.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published
0