5

64 ビット Asus の Ubuntu 12.10 に ARToolKit をインストールしました。インストールでエラーが発生しなかったので、問題ないと思います。しかし、例のいずれかを試したい場合、カメラが見つかりません。何も入力しない char *vconf = "";

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";

しかし、これは私にはうまくいきません。私は得る

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 のようなパスが必要であることはわかっていますが、他に何が気になるのでしょうか。

4

1 に答える 1

2
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 を使用しているため、上記の使用の代わりに:

char *vconf = "-dev=/dev/video0 ";

詳細については、「{ARtoolkit フォルダー}/doc/video/index.html」を参照してください。

于 2013-12-16T12:28:26.897 に答える