Convert any bicolor video (Black or White) and tricolor video (Black, White or Grey) into an ascii version. The program focuses on forms rather than color derivatives.
Example of rendering :
The libraries used within the project:
-
C and C++ compiler:
sudo pacman -S gcc
-
Libraries:
sudo pacman -S sdl2 sdl2_image sdl2_ttf sfml opencv gtk3
-
C compiler:
sudo apt update sudo apt install gcc
-
C++ compiler:
sudo apt update sudo apt install g++
-
Libraries:
sudo apt update sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsfml-dev libopencv-dev libgtk-3-dev
-
C compiler:
sudo dnf install gcc
-
C++ compiler:
sudo dnf install gcc-c++
-
Libraries:
sudo dnf install SDL2-devel SDL2_image-devel SDL2_ttf-devel SFML-devel opencv-devel gtk3-devel
-
Clone the repository:
git clone https://github.com/NichiHachi/video-to-ASCII.git
-
Navigate to the project directory:
cd video-to-ASCII -
Build the project using the makefile:
make
-
Run the main file:
./bin/main
Here are the different accuracies based on the 480p video of Bad Apple!! :
The higher the resolution, the better the accuracy but the longer time of render !
You can add, remove or modify any character in the img/characters-low and img/characters-normal folder. The only requirements are that they must all be the same size and the character must be in the name, for example "#.jpg".


