Skip to main content

A small example package

Project description

#For Convert Image To Text

Download Tesseract-OCR first.

Follow the link:

#For WINDOWS:- https://github.com/UB-Mannheim/tesseract/wiki

#For macOS https://github.com/scott0123/Tesseract-macOS

#Set Environment variable to :-

Variable:-Tesseract-OCR

Path:- Path where Tesseract-OCR is installed like(C:\Program Files\Tesseract-OCR\tesseract.exe)

#type following code in python shell after installing library. 1st step : from TextExtract_Img_Aud import ImageTextConverter

2nd step: ImageTextConverter.img2txt('Path_of_your_Image_file')

In ('Path_of_your_Image_file') here write the path of image file that u want extract the text from. for example 'ImageTextConverter.img2txt(r'C:\Users\Dell\Downloads\Images\PythonKnowledgeGraph.png')'like that only

###################################################################################################################################################################################################################################################### ########################################################################################################################################################################################################################################################### ################################################################################################################################################################################################################################

For Convert Audio To Text

#Download ffmpeg.

windows:-https://ffmpeg.zeranoe.com/builds/

#Set 2 Environment variable to :-

1)Variable:-pydub

Path:- Path where pydub is installed like(C:\Program Files\Python37\Lib\site-packages\pydub)

2)Variable:- Path Path :- Path where ffmpeg installed like(C:\ffmpeg-20191022-0b8956b-win64-static\bin)

#type following code in python shell after installing library. 1st step :

from TextExtract_Img_Aud import AudioTextConverter

2nd step:

AudioTextConverter.A2T('Type of Your Audio file','Path_of_your_AUDIO_file')

In ('Type of Your Audio file','Path_of_your_AUDIO_file') here write the type and path of audiofile that u want extract the text from. for example 'AudioTextConverter.A2T('mp3',r'C:\Users\Dell\Downloads\AudioFiles\Models_Etc.mp3')'like that only

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TextExtract_Img_Aud-0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

TextExtract_Img_Aud-0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page