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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for TextExtract_Img_Aud-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4d13957c179c876ce9c8edb7f3912f58ba71303ebb9faa736e0de4de47c2e0 |
|
MD5 | 7a5efd36aa48ddec86d388d2600772ce |
|
BLAKE2b-256 | 6e8711293af64d0ed7ce3b5e6bef8971bdf5a4165be6ab6cbbc8b2890752205a |