getting select timeout on Linux, quirks solution doesn't work

asked 2019-07-20 23:29:20 -0600

phellipex gravatar image

Hello everyone.

I'm using opencv to capture frames from a USB camera 24/7 for a face recognition project. I've noticed that I get a select timeout error during the early morning hours, when there is no people to be recognized, meaning the frames are pretty much identical (an empty room). How could I prevent this from happening.

I'm using a LI-USB30-ISX017 - Leopard Imaging Inc USB 3 camera mounted on RedHat Enterprise Linux 7.5 with kernel 3.10.0-957.5.1.el7.x86_64. The ML part uses Python 3.6.5 with opencv-python 3.4.2.17 and tensorflow.

I have read many a solution and none have fixed the problem: using options uvcvideo quirks=640 nodrop=1 timeout=50000 (and 128 along with lower timeouts) has reduced the frequency of the timeouts, but they still happen occasionally.

Any help would be appreciated.

edit retag flag offensive close merge delete