Select Timeout error in Ubuntu - Opencv

前端 未结 3 878
生来不讨喜
生来不讨喜 2020-12-15 00:54

I am trying to set OpenCv up for my final year project and have run into a couple of problems. I successfully got it set up in Ubuntu following this tutorial.

The pr

3条回答
  •  一整个雨季
    2020-12-15 01:47

    Try this:

    modprobe uvcvideo nodrop=1 timeout=6000
    

    and if that works, simply make the changes permanent by editing /etc/modprobe.d/modprobe.conf

    Try increasing the timeout to a ridiculously large number. That should fix the issue, or at least it worked for me. It's just that the call to select returns no ready descriptors, and that may be caused by the video driver, or device one.

    If that does not work,

    Enable module traces:

    sudo echo 0xffff > /sys/module/uvcvideo/parameters/trace
    

    Run the program until the error is found, and stop it as soon as possible. Then disable the traces:

    sudo echo 0 > /sys/module/uvcvideo/parameters/trace
    

    Search with dmesg for error messages.

提交回复
热议问题