Spaces:
Runtime error
Runtime error
banao-tech
commited on
Commit
β’
f4e8dce
1
Parent(s):
75e2e75
Update utils.py
Browse files
utils.py
CHANGED
@@ -20,15 +20,16 @@ from matplotlib import pyplot as plt
|
|
20 |
import easyocr
|
21 |
from paddleocr import PaddleOCR
|
22 |
reader = easyocr.Reader(['en'], model_storage_directory="/usr/src/app/.EasyOCR")
|
23 |
-
paddle_ocr = PaddleOCR(
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
32 |
import time
|
33 |
import base64
|
34 |
|
|
|
20 |
import easyocr
|
21 |
from paddleocr import PaddleOCR
|
22 |
reader = easyocr.Reader(['en'], model_storage_directory="/usr/src/app/.EasyOCR")
|
23 |
+
# paddle_ocr = PaddleOCR(
|
24 |
+
# lang='en', # other lang also available
|
25 |
+
# use_angle_cls=False,
|
26 |
+
# use_gpu=False, # using cuda will conflict with pytorch in the same process
|
27 |
+
# show_log=False,
|
28 |
+
# max_batch_size=1024,
|
29 |
+
# use_dilation=True, # improves accuracy
|
30 |
+
# det_db_score_mode='slow', # improves accuracy
|
31 |
+
# rec_batch_num=1024)
|
32 |
+
paddle_ocr = None
|
33 |
import time
|
34 |
import base64
|
35 |
|