是否可以使用 Python 语言读取任何相机(不是网络摄像头)?根据我到目前为止找到的答案,我尝试安装 gphoto 目录,但在安装时收到错误消息
<ERROR: command "pkg-config --modversion libgphoto2" failed Traceback (most recent call last):
File "<string>", line 1, in <module> File "C:\Users\user\AppData\Local\Temp\pycharm-packaging\gphoto2\setup.py",
line 38, in <module> cmd, stderr=FNULL, universal_newlines=True).split('.') File
"C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 395, in check_output **kwargs).stdout
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 472, in run with Popen(*popenargs, **kwargs)
as process: File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 775, in __init__ restore_signals, start_new_session) File
"C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1178, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specifiedd the error message>.
我尝试直接从 Gitab 下载该库并通过计算机添加它,但也未能在 Python 中安装它。我使用 Windows 操作系统、PyCharm 工作区、Python 3.6。谢谢!