smaranjitghose / ArtCV

Randomly Exploring Computer Vision techniques to create eye catching art out of plain boring images!
MIT License
49 stars 37 forks source link

Add ASCII Art Script #52

Closed aryashah2k closed 3 years ago

aryashah2k commented 3 years ago

Converts Image To String Of Ascii Character Art.

Reference Issue: #40 @smaranjitghose

UPDATE : Added argparse as suggested during pull request review

About the PR:

This PR deals with the conversion of image to ascii art using PIL. The image to be converted is taken from the local path and then the script works on converting it into an ascii string of characters. Process:

The image path is entered by the user. Image is resized according to new width. Each pixel of image is converted to grayscale Ascii characters replace each pixel into a string of characters Final output gets stored in a txt file and also gets displayed on the terminal window. Final Output Of The Kolkata Image:

image

Beloved Cheems Ascii:

image