lentinjoseph / Artoolkit-on-Ubuntu-12.04

Artoolkit on Ubuntu 12.04
GNU General Public License v2.0
2 stars 6 forks source link

My logitech c920 camera doesn't work with ARToolkit(In Ubuntu 12.04 x86_64) #2

Open wason opened 11 years ago

wason commented 11 years ago

Hello, the script you made works fine for my embedded Toshiba c855-s5206 web camera. But I'm having trouble in making the "simpleTest" run with my Logitech c920 webcam. I get the following error when I run the ./simpleTest with the Logithech c920 webcam:

Using config string from environment [v4l2src device=/dev/video0 ! image/
jpeg,width=1920,height=1080,framerate=15/1,rate=15 ! queue ! jpegdec ! queue ! ffmpegcolorspace !
identity name=artoolkit ! fakesink]. libARvideo: GStreamer 0.10.36 libARvideo: GStreamer pipeline is PAUSED! libARvideo: GStreamer negotiated 1920x1080 libARvideo: GStreamer pipeline is PLAYING! libARvideo: GStreamer pipeline is PAUSED! Image size (x,y) = (1920,1080) * Camera Parameter *

                 SIZE = 1920, 1080
                 Distortion factor = 955.500000 790.500000 2.911111 1.012757
                 2102.85441 0.00000 949.50000 0.00000 
                 0.00000 2178.28254 724.50000 0.00000 
                 0.00000 0.00000 1.00000 0.00000 
                 --------------------------------------
                 libARvideo: GStreamer pipeline is PLAYING!
                 Segmentation fault (core dumped)

The camera works fine with Gstreamer but I get this error with any binary I run from the examples of ARToolkit. Additionally, I tried to lower the resolution and frame rate of the camera by changing the "width=1920,height=1080,framerate=15/1,rate=15" with lower values.

Do you have any idea what's going on??

stoneyv commented 11 years ago

I was able to use the Logitech C920 webcam on Ubuntu 12.04 LTS using the guvcview application. I switched the camera source from my laptop camera to the C920 using the second tab settings. I also increased the resolution to 1280 x 720. Then I captured video and played the .avi back using VLC. If you run the "usb-devices" command from the shell, you will see that the video driver is "ucvideo" I found the application using the default Ubuntu Software center from the toolbar. You can also use the "sudo apt-get install guvcview" command to install it.