text-detection-ctpn
text-detection-ctpn copied to clipboard
ImportError: No module named 'utils.bbox.bbox'
在Windows10 上部署,出现了这样的报错
Traceback (most recent call last):
File "D:/text-detection-ctpn/main/demo.py", line 12, in
一样
找到解决办法了吗
找到解决办法了吗
我找到了另外的部署方式 地址是: https://blog.csdn.net/yx123919804/article/details/84377026
did you add __init__.py
in the relevant folders? I added it to utils and bbox folders.
You have to build the project, go to utils/bbox and run make.sh. Its easier to run it in linux and I would recommend doing that.
@mrxiaohe 请问这个问题你能教一下我吗,看了好久都没有解决
"python setup.py build", then copy the generated .pyd files into bbox folder. It works for me.
@yunzhi-wu
whats wrong with me
did you add init.py in the relevant folders? I added it to utils and bbox folders. yes,but it did‘t soloved.
generated .pyd
Please more details,thanks
"python setup.py build", then copy the generated .pyd files into bbox folder. It works for me. Do I need to write a setup.py by myself?
@ldlbest No, you don't need to write it yourself, its here --> text-detection-ctpn/utils/bbox/setup.py You also might wanna try running everything with python 3.5
text-detection-ctpn\utils\bbox> python setup.py build it make new "build" folder then copy 2 file in "build\lib.win-amd64-3.6" back to "text-detection-ctpn\utils\bbox"
i have the same problem
text-detection-ctpn \ utils \ bbox> python setup.py构建 它以创建新的“ build”文件夹, 然后将“ build \ lib.win-amd64-3.6”中的2个文件复制回“ text-detection-ctpn \ utils \ bbox” ”
i have done this step,but still have errors
You got that eror because no have folder “utils/rpn_msr”. You need to copy folder “rpn_msr” from repo to “utils” and try again
text-detection-ctpn\utils\bbox> python setup.py build it make new "build" folder then copy 2 file in "build\lib.win-amd64-3.6" back to "text-detection-ctpn\utils\bbox"
it works!