eragonruan / text-detection-ctpn

text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network
MIT License
3.43k stars 1.33k forks source link

ImportError: dynamic module does not define module export function (PyInit_bbox) #182

Open xxllp opened 6 years ago

xxllp commented 6 years ago

File "example_ocr.py", line 12, in from lib.networks.factory import get_network File "/home/mlp/ai/ocr/text-detection-ctpn-master/lib/init.py", line 1, in from . import fast_rcnn File "/home/mlp/ai/ocr/text-detection-ctpn-master/lib/fast_rcnn/init.py", line 2, in from . import train File "/home/mlp/ai/ocr/text-detection-ctpn-master/lib/fast_rcnn/train.py", line 5, in from ..roi_data_layer.layer import RoIDataLayer File "/home/mlp/ai/ocr/text-detection-ctpn-master/lib/roi_data_layer/init.py", line 1, in from . import roidb File "/home/mlp/ai/ocr/text-detection-ctpn-master/lib/roi_data_layer/roidb.py", line 5, in from lib.utils.bbox import bbox_overlaps File "/home/mlp/ai/ocr/text-detection-ctpn-master/lib/utils/init.py", line 4, in from . import bbox ImportError: dynamic module does not define module export function (PyInit_bbox)

eragonruan commented 6 years ago

@xxllp please use python2, and check if bbox.so is correctly generated in lib/utils/

apple55bc commented 5 years ago

Ypu needn't to use python2. Open ctpn/lib/utils/make.sh, change python to python3

dupc1995 commented 4 years ago

@apple55bc ,I am now facing the same problem, Can you tell me how to deal with it in details?I change the phthon to python3 in make.sh,but not work

dupc1995 commented 4 years ago

@xxllp I am now facing the same problem,do you solve it ? Can you tell me how to deal with in details