![ARToolKit5 相机无法识别](https://linux22.com/image/896383/ARToolKit5%20%E7%9B%B8%E6%9C%BA%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB.png)
Cheese 识别了我的网络摄像头。输出v4l2-ctl --list-devices
:
HD WebCam (usb-0000:00:14.0-7):
/dev/video0
但是,ARToolKit5 无法识别相机并输出 SMPTE 彩条。不确定这是 GStreamer 还是 ARToolKit 的问题。输出:
$ sudo ./simpleTest
Using video configuration ''.
Using default video config.
libARvideo: GStreamer 0.10.36
libARvideo: GStreamer pipeline is READY!
libARvideo: GStreamer negotiated [email protected]
libARvideo: allocating 230400 bytes
libARvideo: GStreamer pipeline is PAUSED.
Image size (x,y) = (320,240)
*** Camera Parameter ***
--------------------------------------
SIZE = 320, 240
Distortion factor: k1=0.1147807688, k2=-0.5208189487, p1=-0.0002069871, p2=-0.0040593124
fx=337.085815, fy=316.949043, x0=159.148895, y0=118.950233, s=0.993923
339.14696 0.00000 159.14890 0.00000
0.00000 318.88706 118.95023 0.00000
0.00000 0.00000 1.00000 0.00000
--------------------------------------
我尝试过这些字符串在环境变量中ARTOOLKIT5_VCONF
:-device=LinuxV4L
,,。关于如何让相机被识别,有什么帮助吗-device=GStreamer
?-device=Linux1394Cam
答案1
LinuxV4L2 是正确的设备名称,在 README 中列出,但未在在线文档中列出。
export ARTOOLKIT5_VCONF="-device=LinuxV4L2"