christianmdz / ImageToAscii

Convert images to colour ascii art

Repository from Github https://github.comchristianmdz/ImageToAsciiRepository from Github https://github.comchristianmdz/ImageToAscii

Image to ASCII converter

Convert images into ASCII art using command-line.

Dependencies

OpenCV (>= 4.5)

Build

With MinGW compiler version 12.2.0
Modify the OpenCV path

g++ -o main main.cpp -IC:\OpenCV\opencv\build\include -LC:\OpenCV\opencv\build\lib -llibopencv_core450 -llibopencv_highgui450 -llibopencv_imgcodecs450 -llibopencv_imgproc450

Usage and examples

Just add the image path and output file name when you run the program in the command console

main.exe img/blade_runner.jpg blade_runner_ascii
RAW ASCII

Increases SCALE_FACTOR to generate larger and more detailed images. Check img examples.

Goals

  • Add command line arguments to modify scale, colour, brightness, etc.
  • Video support

About

Convert images to colour ascii art


Languages

Language:C++ 100.0%