Crates.io | printimg |
lib.rs | printimg |
version | 0.5.6 |
source | src |
created_at | 2020-08-10 10:39:11.570297 |
updated_at | 2024-07-14 06:57:54.983654 |
description | Print an image or a video in terminal. |
homepage | |
repository | https://github.com/oza6ut0ne/printimg-rust |
max_upload_size | |
id | 275006 |
size | 73,074 |
Print an image or a video in terminal.
$ sudo apt install libopencv-dev clang libclang-dev
$ cargo install printimg
$ sudo apt install libopencv-dev clang libclang-dev
$ cargo install printimg --features opencv-32
Install OpenCV and LLVM with chocolatey and set environment variables.
(See README.md of twistedfall/opencv-rust
)
Then, install with cargo
.
cargo install printimg
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.
# 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