Spaces:
Sleeping
Sleeping
sunnychenxiwang
commited on
Commit
•
11195f8
1
Parent(s):
14c9181
Update pipeline/tool/scene_text_model.py
Browse files
pipeline/tool/scene_text_model.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import cv2
|
2 |
import numpy as np
|
3 |
from PIL import Image
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
from pipeline.mmocr.mmocr.apis.inferencers import MMOCRInferencer
|
8 |
|
9 |
# BUILD MMOCR
|
10 |
class MAERec:
|
|
|
1 |
import cv2
|
2 |
import numpy as np
|
3 |
from PIL import Image
|
4 |
+
import sys
|
5 |
+
sys.path.append("pipeline/mmocr")
|
6 |
+
from mmocr.apis.inferencers import MMOCRInferencer
|
7 |
+
# from pipeline.mmocr.mmocr.apis.inferencers import MMOCRInferencer
|
8 |
|
9 |
# BUILD MMOCR
|
10 |
class MAERec:
|