Change your Image to Text using Python Module pywhatkit


We will convert an image with special symbols into pure text that can be easily copied and edited, so to do that you will need Python and its module.

STEP 01

Download & Install Python from Python.org.

STEP 02

Run given command in terminal to install Python module pywhatkit.

TERMINAL
pip install pywhatkit

STEP 03

Copy given source code to create the program.

PYTHON
from pywhatkit import image_to_ascii_art as tk
img = "img.jpg"
text = "img"
tk(img, text)

STEP 04

Run the program and done.

Change "img.jpg" into your image name, and if you want to change the name of the text file, change "img" to give the name. 

Provided by Huzaifa Asim - see all

Post a Comment

0 Comments

© Copyright HunerOn Codes. All right reserved

HunerOn®