This is a program that can:
- print images
- play videos
- show live camera picture
directly in command prompt
- Make sure you have the latest version of OpenCV installed at
C:\tools\opencv(or you can edit the path inCMakeLists.txt) - Download the latest version of the project (v2.0.1.zip)
- Unpack the ZIP archive
- Compile the project into a single executable
- Using JetBrains CLion (easier, recommended)
- Using CMake
Once you have cmd_screen.exe (you can download it here),
open the terminal that supports ANSI 24-bit Truecolor codes (almost all modern terminals do) in the same directory and use one of the following commands:
cmd_screen img <image path>cmd_screen vid <video path>- Pros: no need to wait for preloading to finish, no risk of RAM overflow, adaptive sizing and centering
- Cons: lower framerate, worse quality
cmd_screen vid <video path> preload- Pros: higher framerate, better quality
- Cons: high risk of RAM overflow for 1min+ videos, no adaptive sizing and centering
cmd_screen cam <camera index>index should be a non-negative integer
cmd_screen camthe same as cmd_screen cam 0
Not vibecoded and made with ❤️ by Vladimir Polischuk