This is a real-time ASCII converter that transforms the default input video into an ASCII-style output. You can also adjust the blue and red levels in the output image in real-time. The project provide a simple UI written in QML, using the Qt framework.
- CMake
- OpenCV
- Qt
- Qml
- C++
- v4l2loopback
- Windows
- MacOS
- Linux
Foreword:
You must have:
- Qt 6.8.2
- v4l2loopback
Cloning repository and dependencies
git clone [email protected]:b1tflyyyy/virtual-ascii-camera.git
git submodule update --init --recursive
Building OpenCV from sources
OpenCV will be in third-party/opencv
then use official guide to build it for your system here and add it to the CMAKE_PREFIX_PATH
.
Final build
cmake -G Ninja -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$OPENCV_INSTALL_DIR ..
ninja
Creating a virtual device
sudo modprobe v4l2loopback devices=1 video_nr=0 card_label="ASCIICam"
Then in UI set Output Device
to /dev/video0
and set Input Device
to your input device.
After that click on Start Broadcasting
button.