推荐答案 导致: fg_open():打开视频设备失败:没有这样的文件或目录 由于相机在Ubuntu本身运行良好,我的猜测是 问题与python库有关(甚至更有可能,我用的是 他们)。这里有没有人使用Python在linux上访问他们的 网络摄像头?否则我必须驻留在Windows和 VideoCapture(它依赖于win32 api,因此只有Windows), 我不想做的事情。results in:fg_open(): open video device failed: No such file or directorySince the camera works fine in Ubuntu itself my guess is that theproblem is with the python libraries (or even likelier, my usage ofthem). Is there anybody here that was successful in accessing theirwebcam on linux using Python? Else I have to reside to Windows andVideoCapture (which relies on the win32 api and thus is Windows-only),something I''d rather not do. 自从我这样做以来已经*年龄*了 - 所以带上一粒盐。 然而,那时候我是能够使用gqcam访问摄像机。看看 的消息来源显示它所做的只是一些简单的 ioctl-calls和/ dev / video * -device的读取。 这对我有用...... 另外,你可以考虑使用gstreamer + python绑定来获得 。我也成功地使用它们 - 如果我记得这次谈话 今晚左右,我会把你的消息来源发给你。 Diez DiezIt has been *ages* since I did this - so take it with a grain of salt.However, back then I was able to access a video camera using gqcam. Lookinginto the source of that revealed that all it did were some simpleioctl-calls and reading from a /dev/video*-device.That did the trick for me...Additionally, you might consider using gstreamer + the python bindings forthat. I was also successful using them - if I remember this conversationtonight or so, I''ll send you the sources.DiezDiez gstreamer有一个预览窗口。 Diezgstreamer has a preview window.Diez 这篇关于在Ubuntu下访问网络摄像头(usb)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-04 22:38