DAY 8 - Image To Text And Image To Audio Using Python Script
DAY 8 - Image To Text And Image To Audio Using Python Script 1. open a python file from desktop and execute it in python IDLE. That's way, next file will be picked from Desktop by default. That's my personal experience. Please do this step as a prerequisite 2. Install these libraries using below commands. Open command prompt and move to path "C:\Users\Rakesh.Ranjan\AppData\Local\Programs\Python\Python37-32\Scripts>" and then execute below commands >>> pip install pytesseract ## will convert the image to text string >>> pip install googletrans ## google translator library >>> pip install gTTS ##Text To Audio 3. # import the following libraries # will convert the image to text string import pytesseract # adds image processing capabilities from PIL import Image #translates into the mentioned language from googletrans imp...