Image2ASCII

Aug 8, 2022 Β· 1 min read
Image2ASCII

This is a project in which we are going to create a python program which converts an Image to ASCII art.

⚠️ Frameworks and Libraries

  • Tkinter: The tkinter package (Tk interface) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, including macOS, as well as on Windows systems.

🔑 Prerequisites

All the dependencies and required libraries are included in In-Built Python download.


πŸš€Β  Installation

The Code is written in Python 3.7. If you don’t have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:

  1. Clone the repo
git clone https://github.com/Chaganti-Reddy/Img-Ascii.git
  1. Change your directory to the cloned repo
cd Img-Ascii
  1. Now, run the following command in your Terminal/Command Prompt to install the libraries required
python3 -m virtualenv my_env

source my_env/bin/activate

💡 How to Run

  1. Open terminal. Go into the cloned project directory and type the following command:
python3 Img-Ascii.py

πŸ“‚ Directory Tree

β”œβ”€β”€ assets
β”‚Β Β  β”œβ”€β”€ im2.jpg
β”‚Β Β  └── main.png
β”œβ”€β”€ image.txt
β”œβ”€β”€ Img-Ascii.ipynb
β”œβ”€β”€ Img-Ascii.py
β”œβ”€β”€ LICENSE
└── README.md

🔑 Results

Image2ASCII