Skip to content

Image to ASCII Art Convertor made with pure C++ and OpenCV

Notifications You must be signed in to change notification settings

yossev/IMG-TO-ASCII

Repository files navigation

A Simple IMG to ASCII Convertor Using OpenCV

How Does It Work?

The OpenVC Library Provides the ```cv::Mat``` DataType Which either stores a Multi-channel image ( Colored ) or a Single-Channel image ( GreyScale ) , If you're unfamiliar with how GreyScale Images work here's my main reference while building this project:
https://en.wikipedia.org/wiki/Grayscale
The Idea is to Convert Your Multi-Channel Colored Image into a Single-Channel GreyScale Image and Calculate the Average Intensity of each (Scale X Scale) pixels , adn then replacing them with ASCII Characters , Which are appended in the String Depending on the Intensity of each pixel ( Higher Contrast ASCII Letters and Lower Contrast ASCII Letters )
Please Open the Image Below to View the Before / After :

Screenshot 2024-01-23 231113

About

Image to ASCII Art Convertor made with pure C++ and OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages