From 2ab7b6e67041cd9f4924481f7ac0349015adc842 Mon Sep 17 00:00:00 2001 From: vishal2612200 Date: Sun, 17 Jan 2021 16:47:48 +0530 Subject: [PATCH] release: Prepare 0.0.2.8 release - Removed hard-coded language list - Bind pip dependencies - Minor changes in Readme Co-authored by:- Kapil Bansal --- README.md | 13 ++-- freshlybuiltimagebol/bhasha_codes.py | 111 +-------------------------- setup.py | 27 +++---- 3 files changed, 22 insertions(+), 129 deletions(-) diff --git a/README.md b/README.md index 0ef4249..dccbb90 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ d)Convert text to sound output(shabd_se_dhwani) Run `freshlybuiltimagebol.ShabdDhwani.shabd_se_dhwani(shabd,bhasha,filename)`. e)Recognize text from natural scene image(natural_photo_se_text) -Run `freshlybuiltimagebol.download('east_text_detection')` first to download the model. +Run `freshlybuiltimagebol.imagebol_model_downloader('F_est')` first to download the model, Right now, there is only one available model i.e 'F_est'. Run `freshlybuiltimagebol.NaturalPhotoShabd.text_pehchano(image)`. **freshlybuiltimagebol.NaturalPhotoShabd.text_pehchano(image,min_confidence=0.85,width=320,height=320,padding=0.00)** @@ -86,13 +86,12 @@ method - from freshlybuiltimagebol import imagebol_model_downloader(model_name) *important* while updating model file , hash key must be updated. ## Contributors -[Vishal Sharma](https://github.com/vishal2612200/): G.B. Pant Govt. Engineering College +[Vishal Sharma](https://github.com/vishal2612200/): G.B. Pant Govt. Engineering College, New Delhi -[Kapil Bansal](https://github.com/KapilBansal320): G.B. Pant Govt. Engineering College +[Kapil Bansal](https://github.com/devkapilbansal): G.B. Pant Govt. Engineering College, New Delhi -[Ravi Pawar](https://github.com/ravi5175): G.B. Pant Govt. Engineering College +[Ravi Pawar](https://github.com/ravi5175): G.B. Pant Govt. Engineering College, New Delhi -[Sushmita](https://github.com/17sushmita): G.B. Pant Govt. Engineering College - -[Simran](https://github.com/ishvik): Maharaja Agrasen Institute of Technology +[Sushmita](https://github.com/17sushmita): G.B. Pant Govt. Engineering College, New Delhi +[Simran](https://github.com/ishvik): Maharaja Agrasen Institute of Technology, New Delhi diff --git a/freshlybuiltimagebol/bhasha_codes.py b/freshlybuiltimagebol/bhasha_codes.py index a6175e3..86e66e7 100644 --- a/freshlybuiltimagebol/bhasha_codes.py +++ b/freshlybuiltimagebol/bhasha_codes.py @@ -1,110 +1,3 @@ -bhasha_kosh = { - 'af': 'afrikaans', - 'sq': 'albanian', - 'am': 'amharic', - 'ar': 'arabic', - 'hy': 'armenian', - 'az': 'azerbaijani', - 'eu': 'basque', - 'be': 'belarusian', - 'bn': 'bengali', - 'bs': 'bosnian', - 'bg': 'bulgarian', - 'ca': 'catalan', - 'ceb': 'cebuano', - 'ny': 'chichewa', - 'zh-cn': 'chinese (simplified)', - 'zh-tw': 'chinese (traditional)', - 'co': 'corsican', - 'hr': 'croatian', - 'cs': 'czech', - 'da': 'danish', - 'nl': 'dutch', - 'en': 'english', - 'eo': 'esperanto', - 'et': 'estonian', - 'tl': 'filipino', - 'fi': 'finnish', - 'fr': 'french', - 'fy': 'frisian', - 'gl': 'galician', - 'ka': 'georgian', - 'de': 'german', - 'el': 'greek', - 'gu': 'gujarati', - 'ht': 'haitian creole', - 'ha': 'hausa', - 'haw': 'hawaiian', - 'iw': 'hebrew', - 'hi': 'hindi', - 'hmn': 'hmong', - 'hu': 'hungarian', - 'is': 'icelandic', - 'ig': 'igbo', - 'id': 'indonesian', - 'ga': 'irish', - 'it': 'italian', - 'ja': 'japanese', - 'jw': 'javanese', - 'kn': 'kannada', - 'kk': 'kazakh', - 'km': 'khmer', - 'ko': 'korean', - 'ku': 'kurdish (kurmanji)', - 'ky': 'kyrgyz', - 'lo': 'lao', - 'la': 'latin', - 'lv': 'latvian', - 'lt': 'lithuanian', - 'lb': 'luxembourgish', - 'mk': 'macedonian', - 'mg': 'malagasy', - 'ms': 'malay', - 'ml': 'malayalam', - 'mt': 'maltese', - 'mi': 'maori', - 'mr': 'marathi', - 'mn': 'mongolian', - 'my': 'myanmar (burmese)', - 'ne': 'nepali', - 'no': 'norwegian', - 'ps': 'pashto', - 'fa': 'persian', - 'pl': 'polish', - 'pt': 'portuguese', - 'pa': 'punjabi', - 'ro': 'romanian', - 'ru': 'russian', - 'sm': 'samoan', - 'gd': 'scots gaelic', - 'sr': 'serbian', - 'st': 'sesotho', - 'sn': 'shona', - 'sd': 'sindhi', - 'si': 'sinhala', - 'sk': 'slovak', - 'sl': 'slovenian', - 'so': 'somali', - 'es': 'spanish', - 'su': 'sundanese', - 'sw': 'swahili', - 'sv': 'swedish', - 'tg': 'tajik', - 'ta': 'tamil', - 'te': 'telugu', - 'th': 'thai', - 'tr': 'turkish', - 'uk': 'ukrainian', - 'ur': 'urdu', - 'uz': 'uzbek', - 'vi': 'vietnamese', - 'cy': 'welsh', - 'xh': 'xhosa', - 'yi': 'yiddish', - 'yo': 'yoruba', - 'zu': 'zulu', - 'fil': 'Filipino', - 'he': 'Hebrew', -} +from googletrans import LANGUAGES as bhasha_kosh -bhasha_codes = dict(map(reversed, bhasha_kosh.items())) \ No newline at end of file +bhasha_codes = dict(map(reversed, bhasha_kosh.items())) diff --git a/setup.py b/setup.py index b3b7297..a6d8737 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( name='freshlybuiltimagebol', packages=['freshlybuiltimagebol'], - version='0.0.2.7', + version='0.0.2.8', license='MIT', description='Photo Bhi Bol Uthega', long_description=long_description, @@ -26,20 +26,21 @@ author='Vishal Sharma', author_email='vishalsharma.gbpecdelhi@gmail.com', url='https://github.com/FreshlyBuilt/freshlybuiltimagebol', - download_url='https://github.com/FreshlyBuilt/freshlybuiltimagebol/archive/v0.0.2.7.tar.gz', + download_url='https://github.com/FreshlyBuilt/freshlybuiltimagebol/archive/v0.0.2.8.tar.gz', keywords=['Image', 'Audio', 'Text'], install_requires=[ - 'hyper', - 'tqdm', - 'colorama', - 'googletrans', - 'gTTS', - 'Pillow', - 'pytesseract', - 'opencv-python', - 'numpy', - 'matplotlib', - 'imutils', + 'hyper==0.5.0', + 'tqdm==4.46.0', + 'colorama~=0.4', + 'googletrans==3.1.0a0', + 'gTTS==2.2.1', + 'gTTS-token==1.1.4', + 'Pillow~=7.0', + 'pytesseract==0.3.2', + 'opencv-python==4.1.2.30', + 'numpy==1.16.3', + 'matplotlib==3.1.3', + 'imutils==0.5.3', ], classifiers=[ 'Development Status :: 3 - Alpha',