Convert images into ASCII art using command-line.
OpenCV (>= 4.5)
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_imgproc450Just 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.
- Add command line arguments to modify scale, colour, brightness, etc.
- Video support







