好友
阅读权限10
听众
最后登录1970-1-1
|
打开cmd执行rapidocr_web -ip 0.0.0.0 -p 9003后
和在帖子中链接下载的ocrweb_multi目录下执行python main.py后会分别出现以下内容,请问该如何解决?
[Asm] 纯文本查看 复制代码 Traceback (most recent call last):
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\rapidocr_web\ocrweb.py", line 11, in <module>
from rapidocr_web.task import OCRWebUtils
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\rapidocr_web\task.py", line 11, in <module>
import cv2
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\__init__.py", line 188, in <module>
bootstrap()
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\__init__.py", line 182, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\__init__.py", line 36, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\typing\__init__.py", line 169, in <module>
LayerId = cv2.dnn.DictValue
AttributeError: module 'cv2.dnn' has no attribute 'DictValue'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\Scripts\rapidocr_web.exe\__main__.py", line 4, in <module>
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\rapidocr_web\ocrweb.py", line 13, in <module>
from task import OCRWebUtils
ModuleNotFoundError: No module named 'task'
——————————————————————分割线—————————————————————————————————————
[mw_shl_code=asm,true]F:\software\software\sort\小工具\ocr\ocrweb_multi>python main.py
Traceback (most recent call last):
File "F:\software\software\sort\小工具\ocr\ocrweb_multi\main.py", line 5, in <module>
import cv2
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\__init__.py", line 188, in <module>
bootstrap()
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\__init__.py", line 182, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\__init__.py", line 36, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fish\AppData\Local\Programs\Python\Python310\lib\site-packages\cv2\typing\__init__.py", line 169, in <module>
LayerId = cv2.dnn.DictValue
AttributeError: module 'cv2.dnn' has no attribute 'DictValue' |
|