2024-04-19 12:42:40 发布
网友
是否有一个python等价于MATLAB的webcamlist命令,它列出了安装在PC上的网络摄像头
如果您只想列出所有可用的相机,可以使用pygame的^{}
pygame
import pygame.camera pygame.camera.init() cam_list = pygame.camera.list_cameras() print(cam_list)
另外,要安装pygame的相机,您需要安装VideoCapture模块,您可以使用this应答来安装它
VideoCapture
如果您只想列出所有可用的相机,可以使用}
pygame
的^{另外,要安装
pygame
的相机,您需要安装VideoCapture
模块,您可以使用this应答来安装它相关问题 更多 >
编程相关推荐