我的pi相机连接并启用,raspistill成功地拍摄了照片。在python中,cv2.VideoCapture(-1).read()总是返回(False,None)。我很困惑。
发布于 2018-01-17 10:17:47
OpenCV依赖于V4L2 (Video )模块,因此尝试在文件/etc/modules的底部添加以下行并重新启动Raspberry。
bcm2835-v4l2我的现在看起来像这样
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
bcm2835-v4l2这将确保在随后的所有重新启动时加载BroadcomVisualforLinux2 (v4l2)驱动程序。
https://stackoverflow.com/questions/48288141
复制相似问题