xiaofengShi / CHINESE-OCR

[python3.6] 运用tf实现自然场景文字检测,keras/pytorch实现ctpn+crnn+ctc实现不定长场景文字OCR识别
2.91k stars 961 forks source link

undefined symbol: _Py_ZeroStruct #66

Open wyfSunflower opened 5 years ago

wyfSunflower commented 5 years ago

(venv) gml@gml-TM1701:~/Documents/CHINESE-OCR$ python demo.py Using TensorFlow backend. Traceback (most recent call last): File "demo.py", line 8, in import model File "/home/gml/Documents/CHINESE-OCR/model.py", line 15, in from ctpn.text_detect import text_detect File "/home/gml/Documents/CHINESE-OCR/ctpn/text_detect.py", line 3, in from .ctpn.detectors import TextDetector File "/home/gml/Documents/CHINESE-OCR/ctpn/ctpn/detectors.py", line 10, in from ..lib.fast_rcnn.nms_wrapper import nms File "/home/gml/Documents/CHINESE-OCR/ctpn/lib/init.py", line 1, in from . import fast_rcnn File "/home/gml/Documents/CHINESE-OCR/ctpn/lib/fast_rcnn/init.py", line 2, in from . import nms_wrapper File "/home/gml/Documents/CHINESE-OCR/ctpn/lib/fast_rcnn/nms_wrapper.py", line 2, in from ..utils.cython_nms import nms as cython_nms File "/home/gml/Documents/CHINESE-OCR/ctpn/lib/utils/init.py", line 1, in from . import bbox ImportError: /home/gml/Documents/CHINESE-OCR/ctpn/lib/utils/bbox.so: undefined symbol: _Py_ZeroStruct

wyfSunflower commented 5 years ago

(conda_p36) gml@gml-TM1701:~/Documents/CHINESE-OCR$ python demo.py Using TensorFlow backend. Traceback (most recent call last): File "demo.py", line 8, in import model File "/home/gml/Documents/CHINESE-OCR/model.py", line 13, in from crnn.crnn import crnnOcr File "/home/gml/Documents/CHINESE-OCR/crnn/crnn.py", line 11, in import models.crnn as crnn File "./crnn/models/crnn.py", line 4, in import utils ModuleNotFoundError: No module named 'utils'