Spaces:
Runtime error
Runtime error
Update pp_ocr.py
Browse filesTesting more model
pp_ocr.py
CHANGED
|
@@ -4,7 +4,9 @@ import os
|
|
| 4 |
import paddlehub as hub
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def inference_img(img):
|
| 10 |
with tempfile.TemporaryDirectory() as tempdir_name:
|
|
|
|
| 4 |
import paddlehub as hub
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
+
#https://github.com/PaddlePaddle/PaddleHub/tree/b402610a6f0b382a978e82473b541ea1fc6cf09a/modules/image/text_recognition
|
| 8 |
+
#pp_ocrv3 = hub.Module(name="ch_pp-ocrv3")
|
| 9 |
+
pp_ocrv3 = hub.Module(name="multi_languages_ocr_db_crnn")
|
| 10 |
|
| 11 |
def inference_img(img):
|
| 12 |
with tempfile.TemporaryDirectory() as tempdir_name:
|