Skip to content

Commit

Permalink
release: Prepare 0.0.2.8 release
Browse files Browse the repository at this point in the history
- Removed hard-coded language list
- Bind pip dependencies
- Minor changes in Readme

Co-authored by:- Kapil Bansal <kapilbansal.gbpecdelhi@gmail.com>
  • Loading branch information
vishal2612200 committed Jan 17, 2021
1 parent b314d44 commit 2ab7b6e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 129 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)**
Expand Down Expand Up @@ -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
111 changes: 2 additions & 109 deletions freshlybuiltimagebol/bhasha_codes.py
Original file line number Diff line number Diff line change
@@ -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()))
bhasha_codes = dict(map(reversed, bhasha_kosh.items()))
27 changes: 14 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,29 @@
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,
long_description_content_type="text/markdown",
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',
Expand Down

0 comments on commit 2ab7b6e

Please sign in to comment.