15 releases
0.5.6 | Jul 14, 2024 |
---|---|
0.5.5 | Feb 27, 2022 |
0.5.2 | Dec 31, 2021 |
0.4.1 | Nov 27, 2021 |
0.2.0 | Aug 10, 2020 |
#86 in Video
34KB
397 lines
printimg-rust
Print an image or a video in terminal.
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)
-
Install OpenCV and LLVM with chocolatey and set environment variables.
(See README.md oftwistedfall/opencv-rust
) -
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
Dependencies
~7–35MB
~520K SLoC