When accessing webcam through python opencv, isOpened() returns False and no data is read. Does it has to do something with wsl?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
According to this github issue, hardware access is not supported yet in WSL:
Ben Hillis: Hardware access is another area we will be investigating in the future.
All hardware related CLI tools seem to fail (dmesg, lsblk, lsusb returns nothing, /dev is empty...) so it looks like this statement is still valid today. That explains why you cannot access your camera in OpenCV.