breezedeus / CnSTD

CnSTD: 基于 PyTorch/MXNet 的 中文/英文 场景文字检测(Scene Text Detection)、数学公式检测(Mathematical Formula Detection, MFD)、篇章分析(Layout Analysis)的Python3 包
https://www.breezedeus.com/article/cnocr
Apache License 2.0
682 stars 107 forks source link

加载包错误 #32

Open codefavor2018 opened 3 years ago

codefavor2018 commented 3 years ago

File "D:/Users/PycharmProjects/data_analysis/ocr_detection/image_detection.py", line 10, in from cnstd import CnStd File "D:\Anaconda3\envs\python36\lib\site-packages\cnstd__init__.py", line 20, in from .cn_std import CnStd File "D:\Anaconda3\envs\python36\lib\site-packages\cnstd\cn_std.py", line 32, in from .model import gen_model File "D:\Anaconda3\envs\python36\lib\site-packages\cnstd\model__init.py", line 22, in from .dbnet import gen_dbnet, DBNet File "D:\Anaconda3\envs\python36\lib\site-packages\cnstd\model\dbnet.py", line 31, in from .base import DBPostProcessor, _DBNet File "D:\Anaconda3\envs\python36\lib\site-packages\cnstd\model\base.py", line 23, in from shapely.geometry import Polygon File "D:\Anaconda3\envs\python36\lib\site-packages\shapely\geometry\init.py", line 4, in from .base import CAP_STYLE, JOIN_STYLE File "D:\Anaconda3\envs\python36\lib\site-packages\shapely\geometry\base.py", line 19, in from shapely.coords import CoordinateSequence File "D:\Anaconda3\envs\python36\lib\site-packages\shapely\coords.py", line 8, in from shapely.geos import lgeos File "D:\Anaconda3\envs\python36\lib\site-packages\shapely\geos.py", line 154, in _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll')) File "D:\Anaconda3\envs\python36\lib\ctypes\init.py", line 348, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。

貌似安装包缺少 LoadLibrary,FreeLibrary

breezedeus commented 3 years ago

网上搜一下,看着是 shapely 的问题,不是python包的问题,可能需要另外装些系统包。