Skip to content

Getting Started

Tymur Shashok edited this page Oct 5, 2026 · 1 revision

Getting Started

Requirements

  • 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

Installation

1. Clone the repository

git clone https://github.com/TymurShashok/Image2ASCII.git

2. Install OpenCV

Download OpenCV and extract it. Remember the folder path, you need it in the next step.

3. Configure the Visual Studio project

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.

4. Make the OpenCV DLL available

Copy opencv_world500d.dll (Debug) or opencv_world500.dll (Release) next to the built .exe, or add its folder to your PATH.

5. Add an image

Place your image in the project folder and name it image1.jpg, or change the filename in the source (see Configuration).

6. Build and run

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.

Next steps

Clone this wiki locally