Skip to content

b1tflyyyy/virtual-ascii-camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual ASCII Camera

📜 Description

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.

🖼 UI

My Image

My Image

🖇 How does it work (simple diagram) ?

My Image

📝 Technologies

  • CMake
  • OpenCV
  • Qt
  • Qml
  • C++
  • v4l2loopback

💻 Supported systems

  • Windows
  • MacOS
  • Linux

⚙️ Build

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 

🚀 Run

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.