Print an image or a video in terminal.
sh
$ sudo apt install libopencv-dev clang libclang-dev
$ cargo install printimg
sh
$ sudo apt install libopencv-dev clang libclang-dev
$ cargo install printimg --features opencv-32
Multi-architecture docker image is available.
sh
$ docker pull oza6ut0ne/opencv:4.3.0 # already installed in the image!
twistedfall/opencv-rust
)Then, install with cargo
.
cmd
cargo install printimg
sh
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.
```sh
$ printi foo.png
$ printi bar.mp4
$ printi 0
$ printi https://rustacean.net/assets/rustacean-flat-happy.png ```