Repository navigation
Getting Started
Tymur Shashok edited this page Oct 5, 2026
·
1 revision
-
Windows (the renderer includes
<windows.h>) -
Visual Studio 2022 (platform toolset
v143, x64) -
OpenCV (the project is configured for
opencv_world500) - A terminal with 24-bit ANSI color support, such as Windows Terminal, for RGB mode
git clone https://github.com/TymurShashok/Image2ASCII.git
Download OpenCV and extract it. Remember the folder path, you need it in the next step.
Open the project in Visual Studio and update the paths (Project → Properties):
| Setting | Value |
|---|---|
| C/C++ → General → Additional Include Directories | <opencv>\build\include |
| Linker → General → Additional Library Directories | <opencv>\build\x64\vc16\lib |
| Linker → Input → Additional Dependencies |
opencv_world500d.lib (Debug) / opencv_world500.lib (Release) |
The repository currently contains absolute paths from the author's machine, so they must be changed.
Copy opencv_world500d.dll (Debug) or opencv_world500.dll (Release) next to the built .exe, or add its folder to your PATH.
Place your image in the project folder and name it image1.jpg, or change the filename in the source (see Configuration).
Build for x64 (Debug or Release) and run. The ASCII art appears in the console and is saved as image.txt.
Tip: reduce the console font size or zoom out so the 200-character-wide output fits on one line.
- Change the look of the output: Configuration
- Understand what happens under the hood: How It Works
Image2ASCII · MIT License · Repository