选择在Ubuntu超时错误 - opencv的 [英] Select Timeout error in Ubuntu - Opencv

查看:2595
本文介绍了选择在Ubuntu超时错误 - opencv的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想OpenCV的设置为我的最后一年的项目,并遇到了几个问题。我成功地得到了它在Ubuntu下本教程的设置。

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.

我现在遇到的问题是保持这个<一个href=\"http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html\">sample程序运行。该方案是使用一个摄像头的人脸检测。

The problem I am having now is keeping this sample program running. The program is face detection using a webcam.

它运行细3或4秒,然后捕获卡在窗口的单个帧。控制台显示以下输出。

It runs fine for 3 or 4 seconds and then the capture gets stuck with a single frame in the window. The console displays the following output.

tom@ubuntu:~/College/opencv/faceDetect_sample$ make
./faceDetect --cascade="haarcascade_frontalface_alt.xml" --nested-cascade="haarcascade_eye_tree_eyeglasses.xml"
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
init done 
opengl support available 
select timeout
select timeout
select timeout
select timeout
select timeout
select timeout
^Cmake: *** [run] Interrupt

如果任何人有哪里何去何从一个想法,我真的AP preciate一些帮助!

If anybody has an idea of where to go from here, I would really appreciate some help !

推荐答案

试试这个:

modprobe uvcvideo nodrop=1 timeout=6000

和其是否正常工作,只是使更改永久编辑/etc/modprobe.d/modprobe.conf

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.

如果不工作,

启用模块的痕迹:

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

的dmesg 搜索错误消息。

这篇关于选择在Ubuntu超时错误 - opencv的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆