Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError 126] 找不到指定的模块。 #281

Closed
songyuc opened this issue Jul 1, 2020 · 3 comments
Closed

OSError: [WinError 126] 找不到指定的模块。 #281

songyuc opened this issue Jul 1, 2020 · 3 comments

Comments

@songyuc
Copy link

songyuc commented Jul 1, 2020

尊敬的开发者,你好,我今天在Win10系统上面测试了一下进行文字识别,出现了下面的错误:

File "main.py", line 46, in main
text_thresh=0.5) # 识别中文文本置信度的阈值;
File "C:\Users\46630.paddlehub\modules\chinese_ocr_db_crnn_mobile\module.py", line 197, in recognize_text
images=predicted_data, use_gpu=self.use_gpu, box_thresh=box_thresh)
File "C:\Users\46630.paddlehub\modules\chinese_text_detection_db_mobile\module.py", line 168, in detect_text
from chinese_text_detection_db_mobile.processor import DBPreProcess, DBPostProcess, draw_boxes, get_image_ext
File "C:\Users\46630.paddlehub\modules\chinese_text_detection_db_mobile\processor.py", line 9, in
from shapely.geometry import Polygon
File "E:\Path\Python\Anaconda3\envs\conda-general\lib\site-packages\shapely\geometry_init_.py", line 4, in
from .base import CAP_STYLE, JOIN_STYLE
File "E:\Path\Python\Anaconda3\envs\conda-general\lib\site-packages\shapely\geometry\base.py", line 18, in
from shapely.coords import CoordinateSequence
File "E:\Path\Python\Anaconda3\envs\conda-general\lib\site-packages\shapely\coords.py", line 8, in
from shapely.geos import lgeos
File "E:\Path\Python\Anaconda3\envs\conda-general\lib\site-packages\shapely\geos.py", line 145, in
lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
File "E:\Path\Python\Anaconda3\envs\conda-general\lib\ctypes_init
.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

请问一下,这个该怎么进行设置呢?

@tink2123
Copy link
Collaborator

tink2123 commented Jul 1, 2020

这个问题是因为shapely库安装有误,可以参考 #212 这个issue重新安装一下

@songyuc
Copy link
Author

songyuc commented Jul 1, 2020

@tink2123 ,好的,谢谢你的解答!

@LDOUBLEV LDOUBLEV closed this as completed Jul 2, 2020
@linlion0311
Copy link

这个问题是因为shapely库安装有误,可以参考 #212 这个issue重新安装一下

感謝~ 方法有用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants