Well, I've made some modifications to the video4linux code in ARToolKit
to get my Philips TUCam 740K working. You can grab the modified
ARToolKit 2.65 package at:
http://graphics.upb.de/ARToolKit2.65_YUV420P.tar.gz
...or alternatively a patch for the 2.65 version (the version that was
included on the art02 workshop CD, if I'm not mistaken):
http://graphics.upb.de/ARToolKit2.65_YUV420P.patch
The unmodified files are still there (extension .orig). I think I only
modified "lib/SRC/VideoLinuxV4L/video.c" and
"include/AR/sys/videoLinuxV4L.h" (and changed the vconf line in all the
examples and utils). You call ./Configure and select the Video4Linux
driver. In your application, you add "palette=YUV420P" in your
video-config line (vconf=...) to indicate that the camera uses the
YUV420P format. The Philips webcams don't seem to offer RGB format
pictures, so I included some code to convert them.
Maybe on the long run, using the libavcodec (ffmpeg, part of the MPlayer
project) would be more efficient for that, since they include optimized
code for i386 machines...
Oh, and be sure to check out the extended webcam drivers at:
http://www.smcc.demon.nl/webcam/
(install instructions can be found there, too)
Those are an addition to the kernel driver for the philips webcams, and
they offer using the webcam at 640x480 pixels, for example...
Anyway, I hope this code works for you,
Robert
Enrico schrieb:
> Dear All,
>
> I have tried to use the patch available on
> http://www.gvu.gatech.edu/ccg/people/dan/software/artoolkit.html
> to use the ARToolkit with a philips webcam on linux rh8, but simpleTest
> gives me a segmentation fault after a few seconds.
>
> Does anyone have it working?
>
> Thanks,
> Enrico
>
>
|