sunnychenxiwang commited on
Commit
dd39aea
1 Parent(s): 5b8e00b

Update pipeline/tool/scene_text_model.py

Browse files
Files changed (1) hide show
  1. pipeline/tool/scene_text_model.py +4 -1
pipeline/tool/scene_text_model.py CHANGED
@@ -1,7 +1,10 @@
1
  import cv2
2
  import numpy as np
3
  from PIL import Image
4
- from pipeline.mmocr.mmocr.apis.inferencers import MMOCRInferencer
 
 
 
5
 
6
  # BUILD MMOCR
7
  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: