Spaces:
Runtime error
Runtime error
Update ocrFuncs.py
Browse files- ocrFuncs.py +2 -2
ocrFuncs.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
#bit messy to say the least will put cleaner version in separate space
|
2 |
def imgOCR_img2text(imgFilename):
|
3 |
import easyocr
|
4 |
-
reader = easyocr.Reader(['en'], gpu=True) #GPU inference - faster and more accurate but need GPU. Enable and try/excpet CPU users down to CPU
|
5 |
-
|
6 |
|
7 |
'''
|
8 |
try:
|
|
|
1 |
#bit messy to say the least will put cleaner version in separate space
|
2 |
def imgOCR_img2text(imgFilename):
|
3 |
import easyocr
|
4 |
+
#reader = easyocr.Reader(['en'], gpu=True) #GPU inference - faster and more accurate but need GPU. Enable and try/excpet CPU users down to CPU
|
5 |
+
reader = easyocr.Reader(['en'], gpu=False) #CPU inference - slower and less accurate
|
6 |
|
7 |
'''
|
8 |
try:
|