This is a simple C++ program that converts an image into ASCII art. The program reads an input image, processes it, and generates ASCII art based on the intensity of the pixels in the image.
- Converts images to ASCII art
- Supports different ASCII characters for red, green, and blue channels
- Allows customization of ASCII character sets for better output clarity
- OpenCV: This project requires OpenCV library to read and process images.
- Clone this repository to your local machine.
- Make sure you have OpenCV installed. If not, you can install it using your package manager or download it from the official OpenCV website.
- Compile the
main.cpp
file using a C++ compiler.
- Run the compiled executable.
- Provide the path to the input image when prompted.
- The program will process the image and display the corresponding ASCII art in the console.
- You can customize the ASCII characters used for the red, green, and blue channels by modifying the
redASCIIChars
,greenASCIIChars
, andblueASCIIChars
strings in the code. - Adjust the desired width and height of the output ASCII art by modifying the
desiredWidth
anddesiredHeight
variables in the code.