Open xxllp opened 6 years ago
@xxllp please use python2, and check if bbox.so is correctly generated in lib/utils/
Ypu needn't to use python2. Open ctpn/lib/utils/make.sh, change python to python3
@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
@xxllp I am now facing the same problem,do you solve it ? Can you tell me how to deal with in details
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)