Skip to content

Commit 0071d11

Browse files
committed
version 1.2
1 parent c7fb302 commit 0071d11

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
Ready-to-use OCR with 70+ languages supported including Chinese, Japanese, Korean and Thai.
1010

1111
## What's new
12+
- 17 November 2020 - Version 1.2
13+
- New language supports for Telugu and Kannada. These are experimental lite recognition models. Their file sizes are only around 7% of other models and they are ~6x faster at inference with CPU.
1214
- 12 October 2020 - Version 1.1.10
1315
- Faster `beamsearch` decoder (thanks @amitbcp)
1416
- Better code structure (thanks @susmith98)
@@ -99,15 +101,20 @@ Result:
99101
Model weight for chosen language will be automatically downloaded or you can
100102
download it manually from the following links and put it in '~/.EasyOCR/model' folder
101103

102-
- [text detection model (CRAFT)](https://drive.google.com/file/d/1tdItXPoFFeKBtkxb9HBYdBGo-SyMg1m0/view?usp=sharing)
103-
- [latin model](https://drive.google.com/file/d/1M7Lj3OtUsaoppD4ZKudjepzCMsXKlxp3/view?usp=sharing)
104-
- [chinese (traditional) model](https://drive.google.com/file/d/1xWyQC9NIZHNtgz57yofgj2N91rpwBrjh/view?usp=sharing)
105-
- [chinese (simplified) model](https://drive.google.com/file/d/1-jN_R1M4tdlWunRnD5T_Yqb7Io5nNJoR/view?usp=sharing)
106-
- [japanese model](https://drive.google.com/file/d/1ftAeVI6W8HvpLL1EwrQdvuLss23vYqPu/view?usp=sharing)
107-
- [korean model](https://drive.google.com/file/d/1UBKX7dHybcwKK_i2fYx_CXaL1hrTzQ6y/view?usp=sharing)
108-
- [thai model](https://drive.google.com/file/d/14BEuxcfmS0qWi3m9RsxwcUsjavM3rFMa/view?usp=sharing)
109-
- [devanagari model](https://drive.google.com/file/d/1uCiMuBl8H8GAwapEjYUVYYdoOivyGzel/view?usp=sharing)
110-
- [cyrillic model](https://drive.google.com/file/d/1SBmKXV5dpN5Cekacqk3ms1xq3dGbDuu1/view?usp=sharing)
104+
- [text detection model (CRAFT)](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/craft_mlt_25k.zip)
105+
- [latin model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/latin.zip)
106+
- [chinese (traditional) model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/chinese.zip)
107+
- [chinese (simplified) model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/chinese_sim.zip)
108+
- [japanese model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/japanese.zip)
109+
- [korean model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/korean.zip)
110+
- [thai model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/thai.zip)
111+
- [devanagari model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/devanagari.zip)
112+
- [cyrillic model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/cyrillic.zip)
113+
- [arabic model](https://github.com/JaidedAI/EasyOCR/releases/download/pre-v1.1.6/arabic.zip)
114+
- [tamil model](https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.7/tamil.zip)
115+
- [bengali model](https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.8/bengali.zip)
116+
- [telugu model](https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.11/telugu.zip)
117+
- [kannada model](https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.11/kannada.zip)
111118

112119
In case you do not have GPU or your GPU has low memory, you can run it in CPU mode by adding gpu = False
113120

easyocr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .easyocr import Reader
22

3-
__version__ = '1.1.10'
3+
__version__ = '1.2'

easyocr/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
'th_char' : 'กขคฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮฤ' +'เแโใไะา'+ special_c + 'ํฺ'+'ฯๆ',
5050
'th_number' : '0123456789๑๒๓๔๕๖๗๘๙',
5151
'te_char': 'ఁంఃఅఆఇఈఉఊఋఌఎఏఐఒఓఔకఖగఘఙచఛజఝఞటఠడఢణతథదధనపఫబభమయరఱలళవశషసహాిీుూృౄెేైొోౌ్ౠౡౢౣ',
52+
'kn_char': 'ಂಃಅಆಇಈಉಊಋಎಏಐಒಓಔಕಖಗಘಙಚಛಜಝಞಟಠಡಢಣತಥದಧನಪಫಬಭಮಯರಲಳವಶಷಸಹಾಿೀುೂೃೆೇೈೊೋೌ್೦೧೨೩೪೫೬೭೮೯',
5253
}
5354

5455
# first element is url path, second is file size
@@ -66,5 +67,5 @@
6667
'tamil.pth': ('https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.7/tamil.zip', '4b93972fdacdcdabe6d57097025d4dc2'),
6768
'bengali.pth': ('https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.8/bengali.zip', 'cea9e897e2c0576b62cbb1554997ce1c'),
6869
'telugu.pth': ('https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.11/telugu.zip', 'f7576012a3abe593950c47bfa1bd8ddc'),
69-
'kannada.pth': ('https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.11/kannada.zip', ''),
70+
'kannada.pth': ('https://github.com/JaidedAI/EasyOCR/releases/download/v1.1.11/kannada.zip', 'c240c97e4adb8773b53b3b3dec728627'),
7071
}

easyocr/easyocr.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def __init__(self, lang_list, gpu=True, model_storage_directory=None,
127127
self.setModelLanguage('tamil', lang_list, ['ta','en'], '["ta","en"]')
128128
elif 'te' in lang_list:
129129
self.setModelLanguage('telugu', lang_list, ['te','en'], '["te","en"]')
130+
elif 'kn' in lang_list:
131+
self.setModelLanguage('kannada', lang_list, ['kn','en'], '["kn","en"]')
130132
elif set(lang_list) & set(bengali_lang_list):
131133
self.setModelLanguage('bengali', lang_list, bengali_lang_list+['en'], '["bn","as","en"]')
132134
elif set(lang_list) & set(arabic_lang_list):
@@ -177,6 +179,10 @@ def __init__(self, lang_list, gpu=True, model_storage_directory=None,
177179
self.character = number + symbol + characters['en_char'] + characters['te_char']
178180
model_file = 'telugu.pth'
179181
recog_network = 'lite'
182+
elif self.model_lang == 'kannada':
183+
self.character = number + symbol + characters['en_char'] + characters['kn_char']
184+
model_file = 'kannada.pth'
185+
recog_network = 'lite'
180186
elif self.model_lang == 'thai':
181187
separator_list = {
182188
'th': ['\xa2', '\xa3'],

releasenotes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- 17 November 2020 - Version 1.2
2+
- New language supports for Telugu and Kannada. These are experimental lite recognition models. Their file sizes are only around 7% of other models and they are ~6x faster at inference with CPU.
13
- 12 October 2020 - Version 1.1.10
24
- Faster beamsearch decoder (thanks @amitbcp)
35
- Better code structure (thanks @susmith98)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def readme():
1717
name='easyocr',
1818
packages=['easyocr'],
1919
include_package_data=True,
20-
version='1.1.10',
20+
version='1.2',
2121
install_requires=requirements,
2222
entry_points={"console_scripts": ["easyocr= easyocr.cli:main"]},
2323
license='Apache License 2.0',

0 commit comments

Comments
 (0)