Convert images into ASCII art from the terminal.
EN
ImageAscier-V2 is a C++17 command-line tool that converts images into ASCII art using OpenCV.
It supports three output modes:
- Console output
- Text file export (
.txt) - Image export (
.png)
ES
ImageAscier-V2 es una herramienta de linea de comandos en C++17 que convierte imagenes en arte ASCII usando OpenCV.
Soporta tres modos de salida:
- Salida por consola
- Exportacion a archivo de texto (
.txt) - Exportacion a imagen (
.png)
EN
- Linux
cmake3.10+g++with C++17 support- OpenCV 4+
- OpenCV FreeType module (used for image output mode)
ES
- Linux
cmake3.10+g++con soporte C++17- OpenCV 4+
- Modulo FreeType de OpenCV (usado para el modo de salida en imagen)
Ubuntu/Debian example:
sudo apt update
sudo apt install -y build-essential cmake libopencv-dev libopencv-contrib-devbuild.sh creates builds/linux, compiles in Release mode, and runs the program.
chmod +x build.sh
./build.shmkdir -p builds/linux
cd builds/linux
cmake ../.. -DCMAKE_BUILD_TYPE=Release
cmake --build .
./image_ascier_v2EN
- Enter the image path when prompted.
- Choose output mode:
1Console2Text file3Image file
- For file/image modes, enter an output name (without extension).
Generated files are saved in your ~/Downloads directory.
ES
- Ingresa la ruta de la imagen cuando el programa la solicite.
- Elige el modo de salida:
1Consola2Archivo de texto3Archivo de imagen
- Para archivo/imagen, ingresa un nombre de salida (sin extension).
Los archivos generados se guardan en ~/Downloads.
ImageAscier/
|-- scr/
| |-- main.cpp
| |-- main.h
| |-- ImageProcessor/
| | |-- imageProcessor.cpp
| | `-- imageProcessor.h
| `-- OutputModes/
| |-- outputModes.cpp
| `-- outputModes.h
|-- build.sh
|-- CMakeLists.txt
`-- README.MD
EN
- Linux-oriented workflow.
- Requires OpenCV installed on the system.
- Image output depends on a local monospace font path (
DejaVuSansMono.ttf).
ES
- Flujo orientado a Linux.
- Requiere OpenCV instalado en el sistema.
- La salida en imagen depende de una fuente monoespaciada local (
DejaVuSansMono.ttf).
Created by @H3rHex.
This project is licensed under the GNU GENERAL PUBLIC LICENSE.