Spaces:
Sleeping
Sleeping
sunnychenxiwang
commited on
Commit
•
09efc91
1
Parent(s):
dd39aea
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 |
-
import sys
|
5 |
-
sys.path.append("pipeline/mmocr")
|
6 |
-
from mmocr.apis.inferencers import MMOCRInferencer
|
7 |
-
|
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:
|