How to access webcam through opencv in bash?

北战南征 提交于 2019-12-24 08:16:21

问题


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.



来源:https://stackoverflow.com/questions/46387794/how-to-access-webcam-through-opencv-in-bash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!