I'm using a Philips USB-camera under Linux.
compiling ARToolkit 2.6 or 2.52 and starting simpleTest I always get a
"arVideoOpen: channel# is not valid."
changing the DEFAULT_VIDEO_CHANNEL to 0 instead of 1 gives an
"error: setting palette"
(using ABGR instead of BGR yields the same result)
only setting it to RGB (not supported for V4l)
yields 6 images in a window, that seem to work somehow.
Maybe we could autoconfigure the format by asking the camera about
it's , give a format-variable and native format (not conversion) and
have a PixelToGrayscale and a getPixel -method (both get the format
and thus know how many byte a pixel has, ... the getPixel method
would be because some formats store 2 or 4 pixels in n byte.)
This would make the code much cleaner.
Is it supposed to be 6 images and 2 gray areas at the bottom of each
one?
I'll print out the patterns later to try.
Marcus
|