Spaces:
Sleeping
Sleeping
change ocr language to chinese
Browse files- util/utils.py +3 -2
util/utils.py
CHANGED
@@ -19,9 +19,10 @@ import numpy as np
|
|
19 |
from matplotlib import pyplot as plt
|
20 |
import easyocr
|
21 |
from paddleocr import PaddleOCR
|
22 |
-
reader = easyocr.Reader(['en'])
|
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,
|
|
|
19 |
from matplotlib import pyplot as plt
|
20 |
import easyocr
|
21 |
from paddleocr import PaddleOCR
|
22 |
+
reader = easyocr.Reader(['ch_sim', 'en'])
|
23 |
paddle_ocr = PaddleOCR(
|
24 |
+
# lang='en', # other lang also available
|
25 |
+
lang='ch',
|
26 |
use_angle_cls=False,
|
27 |
use_gpu=False, # using cuda will conflict with pytorch in the same process
|
28 |
show_log=False,
|