(hik) D:\pythonProject\pachong\MVS_test\BasicDemo>python BasicDemo.py
Traceback (most recent call last):
File "BasicDemo.py", line 4, in <module>
from CamOperation_class import CameraOperation
File "D:\pythonProject\pachong\MVS_test\BasicDemo\CamOperation_class.py", line 13, in <module>
from MvCameraControl_class import *
File "../MvImport\MvCameraControl_class.py", line 56, in <module>
MvCamCtrldll = WinDLL(dll_path, winmode=0)
File "C:\Users\Administrator\.conda\envs\hik\lib\ctypes\__init__.py", line 369, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Program Files (x86)\Common Files\MVS\Runtime\Win64_x64\MvCameraControl.dll'. Try using the full path with constructor syntax.
解决
# Python3.8版本修改Dll加载策略, 默认不再搜索Path环境变量, 同时增加winmode参数以兼容旧版本
# dllname = "MvCameraControl.dll"
# MvCamCtrldll = WinDLL("C:\\Program Files (x86)\\Co

最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



