我在Windows 10上使用ubuntu终端,并想在我的代码中使用imutils。但是,它有这个错误
[INFO] starting video stream...
VIDEOIO ERROR: V4L: can't open camera by index 0
Traceback (most recent call last):
File "build_face_dataset.py", line 38, in <module>
orig = frame.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
terminate called without an active exception
Aborted (core dumped)
我已经尝试过sudo modprobe bcm2835-v4l2
,但是结果如下
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-18362-Microsoft/modules.dep.bin'
modprobe: FATAL: Module bcm2835-v4l2 not found in directory /lib/modules/4.4.0-18362-Microsoft