首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ARToolKit无法识别U盘摄像头

ARToolKit无法识别U盘摄像头
EN

Stack Overflow用户
提问于 2013-09-28 05:52:36
回答 1查看 2.2K关注 0票数 5

我已经在64位华硕的Ubuntu12.10上安装了ARToolKit。安装过程中没有出现错误,所以我想我没问题。但是当我想要尝试其中一个示例时,它找不到相机。如果我在char *vconf = "";中没有填写任何内容,我会得到

代码语言:javascript
运行
复制
No video config string supplied, using defaults.
ioctl failed

最常见的解决方案是char *vconf = "v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,width=640,height=480 ! identity name=artoolkit ! fakesink";

但这对我不起作用。我得到了

代码语言:javascript
运行
复制
r@r-K55VD:~/Downloads/Artoolkit-on-Ubuntu-12.04-master/bin$ ./simpleTest
Using supplied video config string [v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,width=640,height=480 ! identity name=artoolkit ! fakesink].
ARVideo may be configured using one or more of the following options,
separated by a space:

DEVICE CONTROLS:
 -dev=filepath
    specifies device file.
 -channel=N
    specifies source channel.
 -noadjust
    prevent adjusting the width/height/channel if not suitable.
 -width=N
    specifies expected width of image.
 -height=N
    specifies expected height of image.
 -palette=[RGB|YUV420P]
    specifies the camera palette (WARNING:all are not supported on each camera !!).
IMAGE CONTROLS (WARNING: every options are not supported by all camera !!):
 -brightness=N
    specifies brightness. (0.0 <-> 1.0)
 -contrast=N
    specifies contrast. (0.0 <-> 1.0)
 -saturation=N
    specifies saturation (color). (0.0 <-> 1.0) (for color camera only)
 -hue=N
    specifies hue. (0.0 <-> 1.0) (for color camera only)
 -whiteness=N
    specifies whiteness. (0.0 <-> 1.0) (REMARK: gamma for some drivers, otherwise for greyscale camera only)
 -color=N
    specifies saturation (color). (0.0 <-> 1.0) (REMARK: obsolete !! use saturation control)

OPTION CONTROLS:
 -mode=[PAL|NTSC|SECAM]
    specifies TV signal mode (for tv/capture card).

找出在char *vconf = " "中到底应该放什么的方法论方法是什么?因为我觉得我随机尝试了很多变体,但都没有效果。我知道它需要一个像/dev/video0这样的路径,但是在我看来还有什么是不确定的。

EN

回答 1

Stack Overflow用户

发布于 2013-12-16 20:28:27

代码语言:javascript
运行
复制
char *vconf = "v4l2src device=/dev/video0 use-fixed-fps=false !
ffmpegcolorspace ! capsfilter
caps=video/x-raw-rgb,width=640,height=480 ! identity name=artoolkit !
fakesink";

您尝试的上述配置是针对GStreamer驱动程序的。由于您使用的是VideoLinuxV4L,因此不使用上面的代码:

代码语言:javascript
运行
复制
char *vconf = "-dev=/dev/video0 ";

有关更多信息,请参阅"{ARtoolkit文件夹}/doc/video/index.html“

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19060663

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档