sunnychenxiwang commited on
Commit
09efc91
1 Parent(s): dd39aea

Update pipeline/tool/scene_text_model.py

Browse files
Files changed (1) hide show
  1. pipeline/tool/scene_text_model.py +4 -4
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
- # 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: