Skip to content

Image to ASCII converter, made with Pillow and Numpy

Notifications You must be signed in to change notification settings

mihai10001/img_to_ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image to ASCII (text) converter

A personal project made for fun
It needs optimizations

How to run:

Requires two Python modules: Numpy and Pillow
Run the script with the command: python3 main.py

Output examples:

Original Image Output color Output black & white

Note:

Works best with images that have a white background. Also great with logos, etc

To do:

Better CLI interface
Pre-process images that don't have a high contrast ratio before computing (and other pre-processing methods)
Automatically pick the best scaling ratio based on original dimension of the image as another user option
Later add other useful user options, create a user interface

Contains functions that deal with pixel arrays of 1D or 3D. Also other various array computations, mapping pixel to characters, etc

About

Image to ASCII converter, made with Pillow and Numpy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages